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