RE: AS and CGI
RE: AS and CGI
- Subject: RE: AS and CGI
- From: "Wadson, David" <email@hidden>
- Date: Wed, 26 Jun 2002 14:03:40 -0400
The Applescript Guidebook has information and examples of how to post form
data using URL Access Scripting. You can use both "post" and "get" to submit
form data to a URL. It's a matter of picking apart the HTML of the page to
find the form elements (the action URL, field names, etc.). Depending on how
the CGI is written, you might be able to submit data to it. However, prudent
security programming in a CGI would have it examine whether the data is
coming from where it should (i.e. the website's form), instead of somewhere
else (i.e. your AppleScript). It's basic CGI security issues to keep someone
from really messing up your server by sending data that they shouldn't
whether their intent is malicious or not.
>
----------
>
From: ken
>
Reply To: email@hidden
>
Sent: Wednesday, June 26, 2002 1:49 PM
>
To: email@hidden
>
Subject: AS and CGI
>
>
I have a question about using AppleScript with a CGI (not using AS
>
"as" a CGI):
>
>
Is it possible to simulate sending HTML form data to a CGI and
>
have the AppleScript receive the resulting web page as the result?
>
I won't have direct control of the actual CGI, but I wasn't sure how
>
the CGI might know where to return the data if it doesn't really
>
come from a browser (sorry, I'm still a novice with the CGI aspect).
>
>
My goal is automate submitting data just as if a user submitted the
>
form from an HTML page (authentication is not a issue here, I'm
>
building almost the whole site) and have the script receive the
>
resulting web page first--instead of going to the users browser.
>
That way I can do further editing to the page, add more information,
>
and then send it back to the user's browser as the modified HTML
>
page.
>
>
Thanks for any advice!
>
>
Ken Fleisher
>
>
--
>
====================================================
>
>
"I just know that something good is going to happen..."
>
- Kate Bush
>
>
====================================================
>
--
>
_______________________________________________
>
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.
_______________________________________________
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.