After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 581860 - Support PUT methods when encoding forms
Support PUT methods when encoding forms
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: API
2.27.x
Other Linux
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2009-05-08 13:07 UTC by Ross Burton
Modified: 2009-05-10 16:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (785 bytes, patch)
2009-05-08 13:07 UTC, Ross Burton
none Details | Review

Description Ross Burton 2009-05-08 13:07:15 UTC
When using soup_form_request_for_data() with PUT methods, libsoup refuses to work.  PUT is like POST for form encoding AFAIK, so handle that too.
Comment 1 Ross Burton 2009-05-08 13:07:32 UTC
Created attachment 134252 [details] [review]
Patch
Comment 2 Dan Winship 2009-05-08 21:01:21 UTC
Really? Forms using PUT? That just seems wrong. But it doesn't really hurt anything...
Comment 3 Ross Burton 2009-05-10 16:42:11 UTC
It's part of the MySpace REST API.  No idea why they chose PUT because the official semantics for PUT vs POST make it clear that for their use case they should be using POST, but hey what can you do. :)