Results 1 to 3 of 3

Thread: HTTP POST / Proxy Authentication issue

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default HTTP POST / Proxy Authentication issue

    I use QNetworkAccessManager (and its family) for all HTTP access and everything works fine except for the case when the HTTP operation is a POST and a proxy has been set on QNetworkAccessManager (the POST operation works fine when using HTTP GET).

    I am simply hitting a servlet that echos back the HTTP Post contents for testing. The proxy server for my tests is the Apache HTTP server configured as a Forward Proxy.

    For the POST/proxy case, the proxyAuthenticationRquired signal is fired, and my handler (for this signal) displays a model dialog in order to capture user/passwd. These are immediately used to set the user/passwd members on the QAuthenticator object.

    I then return from the handler ... and its off back into the Qt framework. It then just hangs in there (somewhere) until my timer expires (used as a safeguard).

    I have tried stepping down (deep) into the framework but I am afraid I need some help on this one.

    I have attached a noddy (code example) that should show the problem. Running it without a proxy set, will (should) work. For the problem case, a valid proxy will need to be set. Or the platform's system proxy setting can be used.

    Rgds,
    Attached Files Attached Files

Similar Threads

  1. How to upload file to HTTP server (POST Method)
    By Alex Snet in forum Qt Programming
    Replies: 8
    Last Post: 24th January 2011, 22:49
  2. http POST with form encoding
    By srikanth_trulyit in forum Qt Programming
    Replies: 1
    Last Post: 10th June 2009, 10:16
  3. HTTP GET authentication does not proceed
    By SailingDreams in forum Qt Programming
    Replies: 2
    Last Post: 1st June 2009, 01:27
  4. QHTTP does not see tunneled TCP HTTP OK authentication response
    By SailingDreams in forum Qt Programming
    Replies: 6
    Last Post: 23rd May 2009, 09:39
  5. QtSoapHttpTransport and Proxy authentication
    By rmagro in forum Qt Programming
    Replies: 3
    Last Post: 16th December 2008, 12:07

Tags for this Thread

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.