Qt-interest Archive, April 2007
QHttp download
Message 1 in thread
Hi
I have a problem with QHttp
I want download the following link:
"http://finance.yahoo.com/d/quotes.csv?s=USIM5.SA&s=PETR4.SA&s=CSNA3.SA&f=sl1d1t1c1ohgv&e=.csv
"
But, by QHttp fail.
When I put this link in browser, works perfectly, but in Qt do not. :/
The same thing happens with QT_Dir/examples/network/http
Any help?
Diego
Message 2 in thread
> I have a problem with QHttp
> I want download the following link:
> "http://finance.yahoo.com/d/quotes.csv?s=USIM5.SA&s=PETR4.SA&s=CSNA3.SA&f=sl1d1t1c1ohgv&e=.csv
> "
> But, by QHttp fail.
> When I put this link in browser, works perfectly, but in Qt do not. :/
Some websites like Google and Yahoo have a policy to respond only to
requests from known browsers. You should set the "User-agent" property of
your QHttp similar to your IE or Firefox. Then it'll work.
Regards,
--
[ signature omitted ]