Status: New
Owner: ----
Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 404 by sebi...@gmail.com: [gb.net.curl] Executing Post() with an  
empty string gives error
http://code.google.com/p/gambas/issues/detail?id=404

It should be possible to execute Post() with _Data_ [0] being an empty  
string or Null:
hClient.Post("application/x-www-form-urlencoded",Null , [sHeader])

But instead it complains of "No return value".

Also, if you do:
hClient.Post("application/x-www-form-urlencoded", "", [sHeader])

An "Invalid data" error is raised instead of the previous one.

According the the HTTP specifications [1] the message body may or may not  
be present, and it is signaled by the inclusion of the Content-Length  
header.

[0] http://gambasdoc.org/help/comp/gb.net.curl/httpclient/post?v3

[1] http://tools.ietf.org/html/rfc2616#section-4.3


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to