• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to do an HTTP POST?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do an HTTP POST?


  • Subject: Re: How to do an HTTP POST?
  • From: J J <email@hidden>
  • Date: Sun, 29 Sep 2002 06:10:44 -0700 (PDT)

> 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?
>
> As an example, I'm trying to configure a DSL router
> via Applescript. The
> cgi I'm referencing is:
>
> http://10.0.0.138/cgi/ispname/SetPPPeEUserInfo.cgi
>
> as the URL, and then I need to POST these
> parameters:
>
> userid=usernamevariable1 passwd=userpassword1
>
> I'm at a bit of a loss as to how to do this POST via
> Applescript. Any
> assistance is greatly appreciated.

Hi!

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

Hope this helps!

JJ
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: How to do an HTTP POST?
      • From: phildobbin <email@hidden>
  • Prev by Date: Faster way to replace text in AppleWorks?
  • Next by Date: Re: Change tif to jpg
  • Previous by thread: How to do an HTTP POST?
  • Next by thread: Re: How to do an HTTP POST?
  • Index(es):
    • Date
    • Thread