mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 22:18:00 -05:00
test1518: adjusted to work with hyper
... by making sure the stdout output doesn't look like HTTP headers. Closes #7333
This commit is contained in:
parent
7f11282d5f
commit
a80f8ea182
@ -120,7 +120,6 @@
|
|||||||
1432
|
1432
|
||||||
1455
|
1455
|
||||||
1456
|
1456
|
||||||
1518
|
|
||||||
1519
|
1519
|
||||||
1525
|
1525
|
||||||
1526
|
1526
|
||||||
|
@ -49,11 +49,11 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|||||||
<protocol>
|
<protocol>
|
||||||
</protocol>
|
</protocol>
|
||||||
<stdout>
|
<stdout>
|
||||||
res: 0
|
res 0
|
||||||
status: 302
|
status 302
|
||||||
redirects: 0
|
redirects 0
|
||||||
effectiveurl: http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
effectiveurl http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
||||||
redirecturl: http://1.2 .4.5/test
|
redirecturl http://1.2 .4.5/test
|
||||||
</stdout>
|
</stdout>
|
||||||
<errorcode>
|
<errorcode>
|
||||||
0
|
0
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -53,11 +53,11 @@ int test(char *URL)
|
|||||||
curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effectiveUrl);
|
curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effectiveUrl);
|
||||||
curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &redirectUrl);
|
curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &redirectUrl);
|
||||||
|
|
||||||
printf("res: %d\n"
|
printf("res %d\n"
|
||||||
"status: %d\n"
|
"status %d\n"
|
||||||
"redirects: %d\n"
|
"redirects %d\n"
|
||||||
"effectiveurl: %s\n"
|
"effectiveurl %s\n"
|
||||||
"redirecturl: %s\n",
|
"redirecturl %s\n",
|
||||||
(int)res,
|
(int)res,
|
||||||
(int)curlResponseCode,
|
(int)curlResponseCode,
|
||||||
(int)curlRedirectCount,
|
(int)curlRedirectCount,
|
||||||
|
Loading…
Reference in New Issue
Block a user