Re: capturing e-mail text strings to http posting
Re: capturing e-mail text strings to http posting
- Subject: Re: capturing e-mail text strings to http posting
- From: Juergen Schell <email@hidden>
- Date: Mon, 23 Sep 2002 14:19:21 +0200
I just fought against a similar problem to get data transferred to a server.
The following code works with IE, it should work with other browsers
in a similar fashion.
It does not fill in a form actually displayed on screen but just
sends the data by html post method.
Note that the data need to be URL encoded. If anything like space, =,
&, return, :, # etc appears, it needs to be replaced by the
"%hexnumber" form, e.g. for a space.
J|rgen
---
property theURL : "
http://www.test.com/test.php"
set textA to "somestring"
set textB to "otherstring"
tell application "Internet Explorer"
OpenURL theURL FormData "Value1=" & textA & "&Value2=" & textB
end tell
---
At 12:30 Uhr +0100 23.09.2002, Paul Tuckey wrote:
Hi List
Im after a little bit of advice here, I need to grab 2 text strings from
the body of an e-mail and place these into an http posting. Example the
e-mail body may look something like this...
---
Thanks for your order
Your Purchase account ID: 77234567
Your cart ID: Cart12991
Purchase transaction ID: Trans1542
Generated at: 23 Sep 2002 09:51:58 GMT
Sale value: GBP 42.39
Description: Game 7
Tel:+4401234567890
Shopper IP address: 192.168.1.11
---
I want to grab "Game 7" and "+4401234567890" from the body, put it into this
from action which is automatically submitted to the http server.
---
<form action="http://www.myserver.pl" method="POST">
<input type="hidden" name="Tel" value="+4401234567890">
<input type="hidden" name="Action" value="subscribe">
<input type="hidden" name="Gameid" value="Game 7">
<input type="submit" value="Submit Form">
</form>
---
I'm sure I can script Entourage to to loop through the messages in a
particular folder and grab the text strings I need but I'm not sure how to
go about scripting the http posting once I have placed my variables in my
http form.
Also is using an e-mail client the best way of approaching this or are there
any scripting additions that may suffice. I also know FileMaker pro
reasonably well, would scripting FMP to achieve the above be a good idea
given that good performance is required.
Any advice on how best to approach this is much appreciated.
Paul Tuckey
_______________________________________________
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.
--
J|rgen Schell
RagTime GmbH Tel: [49] (2103) 9657-0
Itterpark 5 Fax: [49] (2103) 9657-96
D-40724 Hilden
mailto:email@hidden
Germany
http://www.RagTime-online.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.