• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AS and CGI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS and CGI


  • Subject: Re: AS and CGI
  • From: "Daniel A. Shockley" <email@hidden>
  • Date: Fri, 28 Jun 2002 09:23:04 -0400

Ken,

That's exactly what URL Access Scripting does. You can tell it to 'download' the action url of the cgi, and add on the 'form data' parts to submit a form just as a web browser does. It will return the page that the CGI would have sent back to the web browser in response. Check out the dictionary of URL Access Scripting (it's in the Scripting Additions folder in the System Folder)

That would do exactly what you want, since you could then edit the downloaded response page, open it using the web browser, and have the user go from there.

Date: Wed, 26 Jun 2002 12:49:11 -0500
From: "ken " <email@hidden>
Reply-To: <email@hidden>
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.

--
----
Daniel A. Shockley
email@hidden
email@hidden
http://www.danshockley.com
_______________________________________________
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.

  • Prev by Date: Load a run only Script from handler problems
  • Next by Date: Re: Event handler labels
  • Previous by thread: Re: AS and CGI
  • Next by thread: puzzled with script syntax error
  • Index(es):
    • Date
    • Thread