I am using libURLMultipartFormData to create the data which is posted to the server even if i do not post files or binary data.
This is the example from the docs:
Code: Select all
local tForm, tError, tUrl, tName, tMessage, tFile
put empty into tForm
put "http://www.someserver.com/cgi-bin/form.cgi" into tUrl
put "dave" into tName
put "hello" into tMessage
put "<file>" & "C:/myfile.txt" into tFile
put libURLMultipartFormData \
(tForm, "name", tName, "message", tMessage, "file", tFile) \
into tError
if tError is not empty then
answer tError
else
set the httpHeaders to line 1 of tForm
post line 2 to -1 of tForm to url tUrl
## check the result, etc., here
set the httpHeaders to empty
end if