curl-library
Problem with PROXY server
Date: Mon, 22 Sep 2008 20:31:11 +0200
Hi,
I am trying to call webservices via PROXY server. I have tried to call
reach it without PROXY, and everything was working very nice. To connect
via PROXY I should add only 2 additional lines:
curl_easy_setopt(curl, CURLOPT_PROXY,"addr:port");
curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, "usr:pwd");
but it's not working.
Below I am sending my output:
2008-09-22 15:57:35,701 DEBUG TYPE: [0] About to connect() to
proxy xx.xx.xx.xx port xx(#0)
2008-09-22 15:57:35,701 DEBUG TYPE: [0] Trying xx.xx.xx.xx...
2008-09-22 15:57:35,702 DEBUG TYPE: [0] connected
2008-09-22 15:57:35,702 DEBUG TYPE: [0] Connected to
xx.xx.xx.xx (xx.xx.xx.xx) port xx (#0)
2008-09-22 15:57:35,702 DEBUG TYPE: [0] Establish HTTP proxy
tunnel to destaddr:port
2008-09-22 15:57:35,703 DEBUG TYPE: [0] Proxy auth using Basic
with user 'aicecard'
2008-09-22 15:57:35,703 DEBUG TYPE: [2] CONNECT destaddr:port
HTTP/1.0
Host: destaddr:port
Proxy-Authorization: Basic YWljZWNhcmQ6
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Proxy-Connection: Keep-Alive
SOAPAction: ""
Content-Type: multiport/from-data
2008-09-22 15:57:35,705 DEBUG TYPE: [0] Easy mode waiting for
response from proxy CONNECT.
2008-09-22 15:57:35,723 DEBUG TYPE: [1] HTTP/1.1 200
Connection established
Via: dns, dns
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
2008-09-22 15:57:35,724 DEBUG TYPE: [1] Via: dns, dns
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
2008-09-22 15:57:35,725 DEBUG TYPE: [1] Connection: Keep-Alive
Proxy-Connection: Keep-Alive
2008-09-22 15:57:35,725 DEBUG TYPE: [1] Proxy-Connection:
Keep-Alive
2008-09-22 15:57:35,725 DEBUG TYPE: [1]
2008-09-22 15:57:35,726 DEBUG TYPE: [0] Proxy replied OK to
CONNECT request
2008-09-22 15:57:35,741 DEBUG TYPE: [0] SSL connection timeout
2008-09-22 15:57:35,741 DEBUG TYPE: [0] Closing connection #0
2008-09-22 15:57:35,741 DEBUG TYPE: [0] Timeout was reached
2008-09-22 15:57:35,741 ERRORBUFFER: Kowalski
Additional I have tried to change PROXY type, but without any results... :(
Can anybody give me any suggestions where is the reason?
Thanks,
Kristof
----------------------------------------------------------------------
Kredyt Hipoteczny w Banku Millennium - zdobywca Zlotego Lauru Klienta!
Sprawdz >> http://link.interia.pl/f1f15
Received on 2008-09-22