Emulate an HTTP post in Rev

Sarah Reichelt sarah.reichelt at gmail.com
Mon Dec 28 02:37:42 EST 2009


> Can someone tell me how to emulate an HTTP post in Rev for a Revlet or
> Standalone? So... someone gives you an HTML code snippet to insert in a
> webpage. It looks like:
>
> <form action="[URL]" method="post">
> <input type="hidden" name="[abc]" value="[123]">
> <input type="hidden" name="[def]" value="[456]">
> ...
> </form>
>
> I want to use *post* from Rev to emulate their button code. How do I
> structure the "data" string of a Rev Post command to emulate the above? And,
> do I need to change the httpHeaders Property to emulate it coming from a
> webpage?


Try something like this:

put "[abc]=" & urlEncode([123]) & "&[def]=" & urlEncode([456]) into tPostData
post tPostData to URL [URL]

HTH,
Sarah



More information about the use-livecode mailing list