Re: Form data
Re: Form data
- Subject: Re: Form data
- From: Doug McNutt <email@hidden>
- Date: Sat, 12 Jan 2002 10:15:34 -0700
At 15:27 +0100 1/12/02, Johan Jacobson wrote:
>
I have a problem. I can4t seem to get my script to work when I use URL access to send form data.
>
>
tell application "URL Access Scripting"
>
set x to download ,
>
"http://www.alphait.se/index.asp" to file ,
>
"Music:Temporary Items:test.txt" form data ,
>
"tel=9090909&message=Testar" replacing yes without progress
>
end tell
URL Access Scripting is destroyed by its terrible documentation. I now think . . .
The presence of form data item has the functionality of forcing URL Access to send out IP packets in the form of an HTTP POST request which goes to the URL, makes a keep-alive connection, and then sends the form data in a following packet.
It is likely that the host in your case is expecting a GET request in which the form data is appended to the URL using ? and & delimiters like this:
<
http://www.alphait.se/index.asp?tel=9090909&message=Testar>
URL Access Scriptng will allow you to put all of that in the URL part of the request and leave the form data out. The result, in all cases I have tried, is an HTTP GET.
What I really would like is not to be guessing. Someone knows the TRUTH but he's not talking.
Also, I don't think the commas I see are necessary. I hope they're being ignored. Good English punctuation is likely to confuse. The continuation symbol is OPTION-l (ell) which might be an e-mail problem.
--
--> If the US citizens between 18 and 21 would exercise their right to vote we wouldn't have a 21 year drinking age. <--
References: | |
| >Form data (From: Johan Jacobson <email@hidden>) |