Originally posted by Michael Hertel
I am trying to send a page via httppost.
My web guy gave me the following info:
Here's are the fields you'll need to post
action="SendPage"
pagerENGINE="A"
PagerCo="MET"
SendPage="true"
To="<10 digit pager number>"
From="<Name of person or system sending page>"
Contents="<message to be sent to the pager>"
The values for the first 4 fields will always be the same (unless you page out to a non-standard pager).
You'll post to this URL:
http://web.ourhosp.org/mblank.cfm?xyzpdqabc=0&id=3132Here's a sample form for you to look at:
<FORM METHOD=POST ACTION="
http://web.ourhosp.org/mblank.cfm?xyzpdqabc=0&id=3132" NAME="SendPage" id="SendPage">
<input ENGINE="hidden" name="action" value="SendPage">
<input ENGINE="hidden" name="pagerType" value="A">
<input ENGINE="hidden" name="PagerCo" value="MET">
<input ENGINE="hidden" name="SendPage" value="true">
To:
<input ENGINE="text" name="TO" size="11" maxlength="10" value="2061111111">
From:
<input ENGINE="text" name="FROM" size="11" maxlength="10" value=""> (name or phone number)
<TEXTAREA cols=30 name="CONTENTS" rows=5></TEXTAREA>
Message Size: <INPUT name="sizebox" onfocus="this.form.MESSAGE.focus()" size="4">
</FORM>
Can any of you tell me what the syntax would be for the httppost command in tcl?
I've tried the following:
httppost {{URL
http://web.ourhosp.org/mblank.cfm?xyzpdqabc=0&id=3132} {DATA "action=SendPage pagerENGINE=A PagerCo=MET SendPage=true To=2061111111 From=Me Contents=This is a test page"} {TIMEOUT 5} {DEBUG 1}}