Qt-interest Archive, April 2007
OpenUrl() with text data?
Message 1 in thread
Hi all,
I am trying to use QDesktopServices::openUrl() method to open an url
with a web browser. For general url, it works very well.
Problem comes when I want to open a php webpage which requires some
info to be input by the user. That is to say, to access this php
webpage correctly, I need to post "Content-Type:
application/x-www-form-urlencoded" field and some text data regarding
to it, not just a single url. However, with openUrl() function, I
cannot figure out where to specify this kind of information.
AFAIK, QHttp could do such a job, but what I need is to open a web
browser to view this webpage. :-(
Anything I could do to get this done? Any ideas would be very appreciated.
--
[ signature omitted ]
Message 2 in thread
I'm not sure, but if you first use QHttp sending proper header, and
then getting a reply containing address to open, you could open it
with web browser without any problem and see content you requested.
On Apr 9, 2007, at 6:41 PM, YUAN Jue wrote:
> Hi all,
>
> I am trying to use QDesktopServices::openUrl() method to open an url
> with a web browser. For general url, it works very well.
>
> Problem comes when I want to open a php webpage which requires some
> info to be input by the user. That is to say, to access this php
> webpage correctly, I need to post "Content-Type:
> application/x-www-form-urlencoded" field and some text data regarding
> to it, not just a single url. However, with openUrl() function, I
> cannot figure out where to specify this kind of information.
>
> AFAIK, QHttp could do such a job, but what I need is to open a web
> browser to view this webpage. :-(
>
> Anything I could do to get this done? Any ideas would be very
> appreciated.
>
> --
> Best Regards
> YUAN Jue @ http://www.yuanjue.net
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
--
[ signature omitted ]