Hi,
I want to login to getfile.pl and download content of webpage as logged user.
This is API http://getfile.pl/article_9_API
And my code
But this code is bad...QHttpRequestHeader header("POST", "/api.php");;
header.setValue("Host", "www.getfile.pl");
header.setValue("Get","mode=login");
header.setContentType("application/x-www-form-urlencoded");
QString loginString = "login=login&password=pass";
m_http->setHost("www.getfile.pl");
m_http->request(header, loginString.toUtf8());
This is response serwer:
Please help meHTTP/1.1 302 Found
Date: Sat, 08 Aug 2009 21:57:49 GMT
Server: Apache/2
Set-Cookie: PHPSESSID=sn9j1hfp13hp35efqs9bq8ved2; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=sn9j1hfp13hp35efqs9bq8ved2; expires=Sat, 08-Aug-2009 22:27:49 GMT; path=/; domain=getfile.pl
Set-Cookie: PHPSESSID=sn9j1hfp13hp35efqs9bq8ved2; expires=Sat, 08-Aug-2009 22:27:49 GMT; path=/; domain=ssl.getfile.pl
Connection: close
location: http://getfile.pl/
Content-Length: 0
Content-Type: text/html; charset=UTF-8
PS: Sorry for my terrible English...
Bookmarks