Created
April 9, 2020 16:19
-
-
Save xquery/7ca3bba74d893494535e83c3932c8b05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP/1.1 400 Bad Request | |
Server: nghttpx | |
Content-Length: 129 | |
Date: Thu, 09 Apr 2020 16:17:15 GMT | |
Content-Type: text/html; charset=UTF-8 | |
Connection: close | |
<!DOCTYPE html><html lang="en"><title>400 Bad Request</title><body><h1>400 Bad Request</h1><footer>nghttpx</footer></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<testcase> | |
<info> | |
<keywords> | |
HTTP | |
Alt-Svc | |
</keywords> | |
</info> | |
# | |
# Server-side | |
<reply> | |
<data nocheck="yes"> | |
HTTP/1.1 200 OK | |
Date: Thu, 09 Nov 2010 14:49:00 GMT | |
Content-Type: text/html | |
test1 | |
</data> | |
</reply> | |
# | |
# Client-side | |
<client> | |
<features> | |
alt-svc | |
debug | |
</features> | |
<server> | |
http | |
http/2 | |
</server> | |
<name> | |
parse incoming Alt-Svc and save to file | |
</name> | |
<setenv> | |
# make debug-curl accept Alt-Svc over plain HTTP | |
CURL_ALTSVC_HTTP="yeah" | |
</setenv> | |
<command option="no-output"> | |
http://%HOSTIP:%HTTPPORT/358 --alt-svc "log/altsvc-358" | |
</command> | |
<file name="log/altsvc-358"> | |
# Your alt-svc cache. https://curl.haxx.se/docs/alt-svc.html | |
# This file was generated by libcurl! Edit at your own risk. | |
h1 %HOSTIP %HTTPPORT h2 %HOSTIP %HTTP2PORT "20290222 22:19:28" 0 0 | |
</file> | |
</client> | |
# | |
# Verify data after the test has been "shot" | |
<verify> | |
<stripfile> | |
# strip out the (dynamic) expire date from the file so that the rest | |
# matches | |
s/\"([^\"]*)\"/TIMESTAMP/ | |
</stripfile> | |
<file name="log/altsvc-358" mode="text"> | |
# Your alt-svc cache. https://curl.haxx.se/docs/alt-svc.html | |
# This file was generated by libcurl! Edit at your own risk. | |
h1 %HOSTIP %HTTPPORT h2 %HOSTIP %HTTP2PORT TIMESTAMP 0 0 | |
</file> | |
</verify> | |
</testcase> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment