• 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: Form data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Form data


  • Subject: Re: Form data
  • From: email@hidden
  • Date: Sat, 12 Jan 2002 12:16:39 -1000

Johan,

Well I have tried to set the form on my webpage to "GET" and that works. But i really wan4t to use tha ability to use "POST".

URL Access Scripting has problems in OS X. An alternative is to use a do shell script with curl. To post data via curl in AS, try this:

do shell script "curl -F name=value www.mysite.com"

where name is the name of your field and value is its value. If you want to get these from variables, you can assemble your curl command into a string first and then execute it:

set myScript to ("curl -F " & fieldName & "=" & fieldValue & " " & myURL) as string
do shell script myScript

HTH, -Reinhold


  • Follow-Ups:
    • Re: Form data
      • From: Johan Jacobson <email@hidden>
References: 
 >Re: Form data (From: Johan Jacobson <email@hidden>)

  • Prev by Date: Re: about droplets
  • Next by Date: Re: How Is AppleScript In Palm Desktop X?
  • Previous by thread: Re: Form data
  • Next by thread: Re: Form data
  • Index(es):
    • Date
    • Thread