PDA

View Full Version : QHttp proxy problem



andre.rigon
18th September 2008, 15:23
Hi folks,

I'm trying to use QHttp to access a soap webservice. If I'm NOT behind a proxy, i got it. But, when I'm behind a proxy, I can't make any requests.

Bellow a snapshot of my code thats configures the proxy for the http request:



QNetworkProxy proxy;
proxy.setType(QNetworkProxy::HttpProxy) ;
proxy.setHostName("10.32.8.117");
proxy.setPort(8080);
http->setProxy(proxy);


When I make a request, I got the following message:

UNEXPECTED RESPONSE: [HTTP/1.0 403 Forbidden
Server: squid/2.5.STABLE14
Mime-Version: 1.0
Date: Thu, 18 Sep 2008 13:14:15 GMT
Content-Type: text/html
Content-Length: 1026
Expires: Thu, 18 Sep 2008 13:14:15 GMT
X-Squid-Error: ERR_ACCESS_DENIED 0
X-Cache: MISS from ula-usrv01
Proxy-Connection: close

Wireshark tells me that QHttp is trying to make a Http CONNECT request.
I think that is the problem.

Does anybody can help me?
I have no idea about what to do.

If the information I provided isn't enough, please tell me.

Thanks in advance,

Andre

andre.rigon
20th September 2008, 21:11
hey guys,

no tips?

:confused:

jacek
28th September 2008, 22:19
It seems that your application uses the proxy, but it doesn't want to pass your data. Maybe you should authenticate yourself?