cbvora / imageshack-uploader

Automatically exported from code.google.com/p/imageshack-uploader
0 stars 0 forks source link

content-type missing in HTTP POST, defaulting to application/octet-stream #243

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Run imageshack-uploader on any modern distro with high QT version, e.g. 
OpenSuSE Tumbleweed with QT 4.8.1. Login procedure will show "Could not connect 
to ImageShack server" message.

What is the expected output? What do you see instead?
Successful login.

What version of the product are you using? On what operating system?
2.2.0 and 2.3.0 on OpenSuSE Tumbleweed.

Please provide any additional information below.
After compliling imageshack-uploader with debug enabled you may see: 
"content-type missing in HTTP POST, defaulting to application/octet-stream" 
when application reports about unsuccessful login attempt.

In order to fix this you have to add:
req.setHeader(QNetworkRequest::ContentTypeHeader, 
"application/x-www-form-urlencoded");
after "this->prepareNetworkRequest(req);" line in "HTTPRequest::post" function 
in httprequest.cpp file.

Sorry, I did not attach patch since I played a lot with uploader code in order 
to understand how it works.

Original issue reported on code.google.com by sov.rb...@gmail.com on 30 Apr 2012 at 7:33

GoogleCodeExporter commented 9 years ago
i have fixed it in my ppa:dr3mro/personal

Original comment by dr3...@gmail.com on 27 May 2012 at 4:29

GoogleCodeExporter commented 9 years ago
patch attached

Original comment by dr3...@gmail.com on 27 May 2012 at 4:30

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks very much for the patch :)

Original comment by dgl...@gmail.com on 30 May 2012 at 3:07

GoogleCodeExporter commented 9 years ago

i have fixed it in my ppa:dr3mro/personal

Thanks for this dr3mro. ;-)

Original comment by batguano...@gmail.com on 2 Jun 2012 at 1:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
fixed it with ppa:dr3mro/personal

thanx dr3mro

Original comment by overkill...@gmail.com on 30 Aug 2012 at 12:08

GoogleCodeExporter commented 9 years ago
without words - deinstalled

Original comment by armingru...@gmail.com on 26 Sep 2012 at 10:59