[Qt-interest] QNetworkReply::UnknownContentError on cgi

Josh jnfo-c at grauman.com
Sat Aug 28 01:33:01 CEST 2010


Hello all,

I'm using QNetworkAccessManager::get() to get a website (that is a cgi). I 
am getting a QNetworkReply::UnknownContentError error. I am able to hit 
the website via a browser and it's fine. I'm also able to hit another cgi 
that gives identical output (when run from the commandline) and that is 
fine. I looked at the Qt source code and this error is from any http error 
that is less than 500 and greater than 407, but don't want to have to 
recompile Qt to get the exact error code. Does anyone have any ideas?

Here's the cgi:
http://cbcfoothills.com/auth.cgi?code=1234

It is supposed to output (which my program reads):
Your unlock code is: FAILED
Error 1. Contact support.

Thanks!

Josh



More information about the Qt-interest-old mailing list