• 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: scripting explorer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting explorer


  • Subject: Re: scripting explorer
  • From: Erik Price <email@hidden>
  • Date: Wed, 5 Jun 2002 10:08:34 -0400

On Wednesday, June 5, 2002, at 04:52 AM, JJ wrote:

Theorically, you can do it, but I've never got it to work properly.

Try the same code with "URL Access Scripting" (a little app within your
scripting additions folder). It should work better than IE's "FormData"...

tell app "URL Access Scripting"
download "http://www.php.net/search.php"; to (choose file name) form data
"parameter1=value1&parameter2=value2"
end tell

You need "choose file name" to store the server's response, but the rest of
the code is look like IE's structure...

True -- I could do it this way -- but I was hoping to avoid the downloading of a file to my disk if possible. Actually, in my original idea I did the same thing with a Perl script that controlled curl, but when I saw that FormData could be passed via a call to Internet Explorer's "OpenURL" action, I realized I might be able to skip this whole process.

But if, as you say, it doesn't work, then nevermind.

I tried using TCPflow, to watch what was actually being sent, but I couldn't figure out any logical pattern. It could also be due to my own lack of familiarity with the HTTP spec. But sometimes additional periods would be appended to the end of my POST data, other times a mysterious "ap" would show up prepended to my POST data, sometimes the POST data would be truncated. I think IE is sending extra data, and I'm not sure how exactly to control it. The fact that there doesn't seem to be a dictionary action to specify the content length could be part of the problem. Not sure.

Thanks JJ



Erik




----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: scripting explorer
      • From: JJ <email@hidden>
References: 
 >Re: scripting explorer (From: JJ <email@hidden>)

  • Prev by Date: [REQ] saving HTML page in text only
  • Next by Date: newbie problem
  • Previous by thread: Re: scripting explorer
  • Next by thread: Re: scripting explorer
  • Index(es):
    • Date
    • Thread