mirror of
https://github.com/curl/curl.git
synced 2026-07-24 17:27:16 +03:00
CURLOPT_HEADEROPT: added
Modified the logic so that CURLOPT_HEADEROPT now controls if PROXYHEADER is actually used or not.
This commit is contained in:
parent
ac887eedbc
commit
ef6be35bae
9 changed files with 59 additions and 28 deletions
|
|
@ -46,7 +46,7 @@ http-proxy
|
|||
lib1525
|
||||
</tool>
|
||||
<name>
|
||||
CURLOPT_PROXYHEADER: same headers for host and proxy
|
||||
CURLOPT_PROXYHEADER is ignored CURLHEADER_UNIFIED
|
||||
</name>
|
||||
<command>
|
||||
http://the.old.moo.1525:%HTTPPORT/1525 %HOSTIP:%PROXYPORT
|
||||
|
|
|
|||
|
|
@ -71,7 +71,8 @@ int test(char *URL)
|
|||
test_setopt(curl, CURLOPT_URL, URL);
|
||||
test_setopt(curl, CURLOPT_PROXY, libtest_arg2);
|
||||
test_setopt(curl, CURLOPT_HTTPHEADER, hhl);
|
||||
test_setopt(curl, CURLOPT_PROXYHEADER, NULL);
|
||||
test_setopt(curl, CURLOPT_PROXYHEADER, hhl);
|
||||
test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED);
|
||||
test_setopt(curl, CURLOPT_POST, 0L);
|
||||
test_setopt(curl, CURLOPT_UPLOAD, 1L);
|
||||
test_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ int test(char *URL)
|
|||
test_setopt(curl, CURLOPT_PROXY, libtest_arg2);
|
||||
test_setopt(curl, CURLOPT_HTTPHEADER, hhl);
|
||||
test_setopt(curl, CURLOPT_PROXYHEADER, phl);
|
||||
test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE);
|
||||
test_setopt(curl, CURLOPT_POST, 0L);
|
||||
test_setopt(curl, CURLOPT_UPLOAD, 1L);
|
||||
test_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue