Friday, July 4th 2008, 10:17pm UTC+1

You are not logged in.

  • Login
  • Register

1

Tuesday, May 6th 2008, 12:15pm

QHttp is not working - Please help

Hi,

I tried to execute the http.exe available in the QT-Examples. It is not working. I am using QT version 4.3.4 in Windows XP SP2. Even My test application which uses the QHTTP class is not working. Both throwing me the same error "Http request failed". Please help.
  • Go to the top of the page

2

Tuesday, May 6th 2008, 2:11pm

RE: QHttp is not working - Please help

What URL are you requesting?
  • Go to the top of the page

3

Tuesday, May 6th 2008, 2:15pm

RE: QHttp is not working - Please help

Hi,

I tried to download an image from the URI "http://www.dpfwiw.com/images/jpeg_artifacts.jpg". I am able to get the image when I used the browser but not using QHttp either from my application nor from the http.exe provided.
  • Go to the top of the page

4

Tuesday, May 6th 2008, 2:42pm

RE: QHttp is not working - Please help

Maybe there is a proxy stopping your connections.

Connect every QHttp signal to a slot of your test application, and add trace in every slot, for example:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class QMyTestApplication : public QObject {

   QHttp myHttp;

   // ...

public slots:
   // ...
   void slotProxyAuthenticationRequired(const QNetworkProxy&,QAuthenticator*);
   // ...

};

QMyTestApplication::QMyTestApplication ()
{
   // ...
   connect(&myHttp,SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&,QAuthenticator*)),
      this, SLOT(slotProxyAuthenticationRequired(const QNetworkProxy&,QAuthenticator*)));
   // ...
}

void QMyTestApplication::slotProxyAuthenticationRequired(const QNetworkProxy&,QAuthenticator*)
{
   qDebug("QMyTestApplication::slotProxyAuthenticationRequired");
}


Do it for every slot and you will see what is making the request fail.

Best regards,

Manuel
  • Go to the top of the page

5

Monday, May 12th 2008, 5:22am

RE: QHttp is not working - Please help

Hi,

Looks to me a proxy issue as well. However, observed that QT does not support PAC support.
Refer to the post :
http://lists.trolltech.com/qt-interest/2…ead00468-0.html

Is there any other alternative for me to use QHttp for proxy server?

Regards
Kalyani
  • Go to the top of the page

Rate this thread