[Gambas-user] Issue 549 in gambas: HttpClient Put Method doesn't work (data is never send)
gambas at ...2524...
gambas at ...2524...
Sun Aug 10 18:26:42 CEST 2014
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 549 by uAle... at ...626...: HttpClient Put Method doesn't work
(data is never send)
http://code.google.com/p/gambas/issues/detail?id=549
1) Describe the problem.
The HttpClient (curl) gives you the option to do a get, post and put. The
get and post work fine, but the put doesn't work, because it never sends
the data (content-length: 0 also).
According to the Gambas docs the following should work:
Dim hH As New HttpClient
Dim sData As String
hH.Url = "http://www.google.com"
hH.Put("application/json", sData)
Only the sData is *never* used in the Put request, as the CHttpClient.c
code also shows in the end.
2) Give information about your system. Use the 'System information' menu in
the Gambas IDE, and paste the result there.
Gambas 3.5.4
Ubuntu 14.04LTS 64-bit
3) Provide a little project that reproduces the bug or the crash.
Attached, including the tcpdumps. Description:
TestApp6.tar - project for reproduction
1-before.pcap - tcpdump before the patch has been applied. Notice NO data
and content length is always 0
2-after - tcpdump after the patch has been applied
CHttpClient.c - fixed code
4) If your project needs a database, try to provide it, or part of it.
5) Explain clearly how to reproduce the bug or the crash.
6) By doing that carefully, you have done 50% of the bug fix job!
IMPORTANT NOTE: If you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
ANOTHER NOTE: Don't create an issue if you have a compilation problem on
the development version. Send a mail to the mailing-list instead, thanks.
Attachments:
TestApp6.tar 20.0 KB
1-before.pcap 2.8 KB
2-after.pcap 3.2 KB
CHttpClient.c 13.6 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
More information about the User
mailing list