goto out;
}
- if(!Curl_checkProxyheaders(data, cf->conn, STRCONST("User-Agent"))
- && data->set.str[STRING_USERAGENT]) {
+ if(!Curl_checkProxyheaders(data, cf->conn, STRCONST("User-Agent")) &&
+ data->set.str[STRING_USERAGENT] && *data->set.str[STRING_USERAGENT]) {
result = Curl_dynhds_cadd(&req->headers, "User-Agent",
data->set.str[STRING_USERAGENT]);
if(result)
HTTP 1.0 CONNECT with proxytunnel and proxy+host Basic authentication
</name>
<command>
-http://test.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER -p --proxy1.0 %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself
+http://test.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER -p --proxy1.0 %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself -A ""
</command>
<features>
proxy
CONNECT test.%TESTNUMBER:%HTTPPORT HTTP/1.0\r
Host: test.%TESTNUMBER:%HTTPPORT\r
Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm\r
-User-Agent: curl/%VERSION\r
Proxy-Connection: Keep-Alive\r
\r
</proxy>
GET /we/want/that/page/%TESTNUMBER HTTP/1.1\r
Host: test.%TESTNUMBER:%HTTPPORT\r
Authorization: Basic aWFtOm15c2VsZg==\r
-User-Agent: curl/%VERSION\r
Accept: */*\r
\r
</protocol>