Re: How to do an HTTP POST?
Re: How to do an HTTP POST?
- Subject: Re: How to do an HTTP POST?
- From: phildobbin <email@hidden>
- Date: Sun, 29 Sep 2002 15:43:03 +0100
On 29/09/2002 14:10, "J J" <email@hidden> wrote:
>
> I've seen the emails recently about how to do an
>
> HTTP "GET" or "Download"
>
> command using URL Access scripting. I have a need
>
> to do a POST via HTTP
>
> through post 80 - - - - can someone show me how
>
> that's done? I don't think
>
> it would be the "upload" command within URL Access
>
> scripting, as it appears
>
> to be related to uploading files. Is there another
>
> HTTP OSAX command-set
>
> that handles HTTP POST?
[...]
>
>
GET should be equal to POST in a simple request. So,
>
the way is the same...
>
>
A quick example to translate a phrase using Google ('n
>
URL Access Scripting) via POST:
>
>
set remote_app to
>
"http://translate.google.com/translate_t"
>
tell application "URL Access Scripting"
>
activate
>
download remote_app to (choose file name) replacing
>
yes form data
>
"text=eres+una+persona+con+orejas&langpair=es|en" with
>
progress
>
end tell
One thing to remember is that GET requests are only intended to retrieve
resources. They should not alter information on the web server. POST is
intended for that purpose.
This is, of course, speaking strictly from a CGI point of view but relevant
here all the same.
Regards,
Phil.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.