Re: Form data
Re: Form data
- Subject: Re: Form data
- From: Johan Jacobson <email@hidden>
- Date: Sat, 12 Jan 2002 21:52:00 +0100
Hi!
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".
I have followed all examples I could find and still it wan4t work. Maybe
"URL access scripting " broken in Mac OSX?
I really need this to work. Is there an easy way to write the same
function with cocoa in AS Studio?
The commas in the script should not be there. It4s probably a conversion
problem. In sweden you press Shit-Opt and J to get the right mark.
Johan
On lvrdag, januari 12, 2002, at 06:15 , Doug McNutt wrote:
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. <--
_______________________________________________
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.