Results 1 to 3 of 3

Thread: QHttp proxy problem

  1. #1

    Default QHttp proxy problem

    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:

    Qt Code:
    1. proxy.setType(QNetworkProxy::HttpProxy) ;
    2. proxy.setHostName("10.32.8.117");
    3. proxy.setPort(8080);
    4. http->setProxy(proxy);
    To copy to clipboard, switch view to plain text mode 

    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
    Last edited by jacek; 28th September 2008 at 21:16. Reason: changed [qtclass] to [code]

  2. #2

    Default Re: QHttp proxy problem

    hey guys,

    no tips?


  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QHttp proxy problem

    It seems that your application uses the proxy, but it doesn't want to pass your data. Maybe you should authenticate yourself?

Similar Threads

  1. problem in using QHttp
    By Ferdous in forum Newbie
    Replies: 4
    Last Post: 10th September 2008, 12:07
  2. Problem in using QHttp with QTimer
    By Ferdous in forum Newbie
    Replies: 2
    Last Post: 6th September 2008, 12:48
  3. QTcpSocket - Proxy problem
    By vishesh in forum Qt Programming
    Replies: 1
    Last Post: 26th September 2007, 23:48
  4. QHttp download file problem.
    By fengtian.we in forum Qt Programming
    Replies: 12
    Last Post: 12th June 2007, 09:39
  5. QHttp Problem
    By musaulker in forum Newbie
    Replies: 4
    Last Post: 29th March 2007, 00:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.