Created
April 10, 2020 06:56
-
-
Save xquery/2b3eada1c65fae6a625b1d6639a5b822 to your computer and use it in GitHub Desktop.
why do I get this output
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"> | |
--alt-svc "log/altsvc-358" http://%HOSTIP:%HTTPPORT/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> |
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: Fri, 10 Apr 2020 06:53:17 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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment