• 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: Johan Jacobson <email@hidden>
  • Date: Sun, 13 Jan 2002 14:37:17 +0100

Thanks!

I have read the man page to CURL and there is alot of features i n CURL that I could use.

Thanks for describing how to use it vaiables in AS. Now I could get to work the way I want :)

-- Johan


On lvrdag, januari 12, 2002, at 11:16 , email@hidden wrote:

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
_______________________________________________
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.


References: 
 >Re: Form data (From: email@hidden)

  • Prev by Date: Re: URL Access Scripting [Off list]
  • Next by Date: Re: Differentiating between "A1", "A12", "A13"
  • Previous by thread: Re: Form data
  • Next by thread: How Is AppleScript In Palm Desktop X?
  • Index(es):
    • Date
    • Thread