The body of POST

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
MaxV
Posts: 1356
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

The body of POST

Post by MaxV » Mon Oct 24, 2016 11:33 am

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?
Livecode Wiki: http://livecode.wikia.com
My blog: http://livecodeitalia.blogspot.it
To post code use this: http://tinyurl.com/ogp6d5w

shaosean
Posts: 878
Joined: Thu Nov 04, 2010 7:53 am

Re: The body of POST

Post by shaosean » Wed Oct 26, 2016 7:14 am

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)

Post Reply

Return to “Internet”