Page 1 of 1

The body of POST

Posted: Mon Oct 24, 2016 11:33 am
by MaxV
Hello,
I was testing on a public web serve the result of livecode POST with this simple code:

Code: Select all

put "name=max&car=Ferrari" into temp
post temp to URL "https://posttestserver.com/post.php"
and I noted this log on server:
Post Params:
key: 'name' value: 'max'
key: 'car' value: 'Ferrari'
Empty post body.

Upload contains PUT data:
name=max&car=Ferrari
What is a POST body and how do you set it?

Re: The body of POST

Posted: Wed Oct 26, 2016 7:14 am
by shaosean

Code: Select all

name=max&car=Ferrari
That should be in the HTTP body.. You can check this by either writing a quick debug server in LiveCode, packet sniffing, or using the developer tools in your web browser (Safari and Firefox have really nice tools to watch the requests and responses)