Re: POST format
Re: POST format
- Subject: Re: POST format
- From: Gary Lists <email@hidden>
- Date: Fri, 19 Sep 2003 14:21:26 -0400
On or about 9/19/03 6:41 AM, Nigel Smith wrote:
>
On 19/9/03 7:55, "Gary Lists" <email@hidden> wrote:
>
>
> Admittedly, I only scanned some of the middle posts in this thread, but this
>
> clarification is very confusing.
>
>
I *think* what Alan means -- and I'm sure that he will correct me if I am
>
wrong -- is:
>
>
"Explorer has the ability to POST form data to a URL, then it displays the
>
resulting page:
>
OpenURL theURL with FormData "dataToPost"
>
>
Can I get Safari to do the same thing?"
>
>
And the short answer is no.
>
>
Nigel
Okay, I didn't get that originally, but I can go with it now.
OP, what about using AS to construct your single long URL, already
containing the form data?
For example, work toward building something like:
http://srch1.un.org:80/plweb-cgi/fastweb?state_id=0&view=unsearch&dbname=web
&sorting=BYRELEVANCE&TemplateName=prehit.tmpl&query=kosovo&operator=adj
You can know the form "fields" in advance, and you can get them however
you'd like (from many dialogs, with inputs; from a database [1]; from a text
file; etc.)
Most all forms submitted via the web are POSTed forms. (Something like
PayPal's developer interface uses GET, because data conversation takes place
and then results are displayed...it's slightly different.)
Even though IE has a dictionary command for POSTing form data, you do not
have to rely on that particular command. You could experiment in Safari
with just using its equivalent GoURL command, and submitting form-encoded
URLs.
You could even assemble and then POST via JavaScript, using the Do Script
command of whatever browsers support JS via AS.
Perhaps a different tact if Safari won't do it straight on?
HTH,
--
Gary
[1] I am happy to send you my FileMaker file called "DynaMox", which
captures submitted form result URLs from IE. It breaks down the URL query
destination, the name-value pairs and then decodes all the values. Each
record in the database then becomes a FileMaker version of the web search
form, and you can enter query strings and perform searches right from FM.
(The specific purpose here is to use AS and FM to make the JS needed to
redisplay the form in a dynamic way.)
The point of your reviewing that file has less to do with your specific form
construction, but it uses much AppleScript to construct and deconstruct and
store very long form-encoded URLs.
It's not difficult, and there are some helpful OSAX, such as URL Encode and
URL Decode, which make the job painless.
_______________________________________________
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.