Re: Form data
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.