treviettreviet / chrome-rest-client

Automatically exported from code.google.com/p/chrome-rest-client
0 stars 0 forks source link

POST request failed #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install version 3.0.20 on google chrome 24.0.1290.1 dev
2. set a POST call (with data in a FROM)

OS Linux

=> No Data is sent

(on PHP $_POST or $_REQUEST (or framework's API Shortcut) return empty array...)

Original issue reported on code.google.com by atala...@gmail.com on 22 Oct 2012 at 4:27

GoogleCodeExporter commented 9 years ago
There is a gap in the application's logic which causes that Content-Type header 
is never set if it wasn't on the headers list. In other words "select" input 
with content type headers is not working at all.
For now, just add Content-Type: application/x-www-form-urlencoded header. I'll 
fix it shortly.

Thanks for issue report!

Original comment by jarro...@gmail.com on 22 Oct 2012 at 6:38

GoogleCodeExporter commented 9 years ago
Same issue. Actually compared to request headers from a normal html form there 
are many things missing but adding only the content-type did resolve my issue.

By the way the postman rest client does the same thing.

Glad I found this bug because I was pulling my hair out trying to figure out 
why the post wasn't working.

Original comment by isimmon...@gmail.com on 28 Oct 2012 at 2:23

GoogleCodeExporter commented 9 years ago
It is fixed in current release.

Original comment by jarro...@gmail.com on 6 Nov 2012 at 10:17

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r179.

Original comment by jarro...@gmail.com on 6 Nov 2012 at 11:16