<snip>
Your problem here is that you're trying to write code to interface
with HTML forms, about which you obviously know nothing at all.
Couldn't have hit the nail on the head any more square than that.
<big snip>
http://www.arch.com/message/cgi-bin/wwwpreproc.cgi
So, to send direct to that page, you'd need:
http://www.arch.com/message/cgi-bin/...gi?PIN=1234567
This one worked perfectly (with a valid PIN of course)
<snip>Or, you could look at this page, which tells you how to do it:
http://content.arch.com/developer/http.html
That shows that you should be able to use this:
http://www.Arch.com/cgi-bin/wwwpage....&MSSG=Message%
2
0text%20is%20here&Q1=1
Sounded quite promising. I still think it should work, but trying
http://www.Arch.com/cgi-bin/wwwpage....NGOESHERE&MSSG
=TESTmessageTESTmessageTEST&Q1=1
(all on 1 line, of course) FAILS even with a valid PIN. Hmmmm????
<snip>That's your crash course in passing data to web page scripts based
on reading HTML forms. It should be enough for this very simple
project.
And a good course it was. Thank-you David. I'll keep trying to
determine why the syntax you suggested (which matches that which is
shown on their DEVELOPER INFORMATION page) does not work.
I learned some valuable tips. Thanks for speaking my language. I'm
sure I'm on the right track.
Here's the HTML for the last page (the one you cannot get to w/o
a valid PIN). I see nothing in it illuminating the pathway of
righteousness. May be you can...
<!-- Please read http://content.arch.com/developer/ before you try to
automate to this CGI -->
<HTML>
<HEAD>
<TITLE> Arch Interactive Messaging </TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function validate()
{
if (document.Terminal.currentLength.value > 500)
{
alert(" Your message is too large.\n" +
"--------------------------------------------------------\n" +
"You must reduce the message body\n" +
"or the custom response choices by\n" +
(document.Terminal.currentLength.value - 500) +
" characters.");
return false;
}
if (document.Terminal.MSSG.value.length == 0)
{
alert('You must enter a message');
document.Terminal.MSSG.focus();
return false;
}
if((document.Terminal.currentLength.value >
document.Terminal.MSSG.value.length) ||
(document.Terminal.resp_route.options[1].selected) ||
(document.Terminal.resp_route.options[2].selected) ||
(document.Terminal.confirm_receipt_str.checked) ||
(document.Terminal.resp_addr.value.length > 0))
{
if (document.Terminal.resp_addr.value.length == 0)
{
alert('You must provide a response address.');
document.Terminal.resp_addr.focus();
return false;
}
if (document.Terminal.resp_route.options[0].selected)
{
alert('You must provide a response route.');
document.Terminal.resp_route.focus();
return false;
}
}
return true;
}
function checkLength()
{
var TotalLength
TotalLength = document.Terminal.MSSG.value.length;
TotalLength = TotalLength +
document.Terminal.resp_a_string.value.length;
TotalLength = TotalLength +
document.Terminal.resp_b_string.value.length;
TotalLength = TotalLength +
document.Terminal.resp_c_string.value.length;
TotalLength = TotalLength +
document.Terminal.resp_d_string.value.length;
TotalLength = TotalLength +
document.Terminal.resp_e_string.value.length;
TotalLength = TotalLength +
document.Terminal.resp_f_string.value.length;
document.Terminal.currentLength.value = TotalLength;
}
if( (navigator.appName == "Netscape") &&
(parseInt(navigator.appVersion) >= 4) )
{
document.captureEvents( Event.KEYUP )
document.onkeyup = checkLength;
}
if( (navigator.appName == "Microsoft Internet Explorer") &&
(parseInt(navigator.appVersion) >= 4) )
{
document.onkeyup = checkLength;
}
//-->
</SCRIPT>
<LINK href="/stylesheets/main.css" rel=stylesheet type=text/css>
</HEAD>
<BODY background=/images/bg3.gif bgColor=#ffffff leftMargin=0
topMargin=0
marginheight="0" marginwidth="0">
<TABLE border=0 cellPadding=0 cellSpacing=0 height="100%"
width="100%">
<TBODY>
<TR></TR>
<TR>
<TD align=left vAlign=top width="100%">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR></TR>
<TR>
<TD align=left vAlign=top width="100%">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD align=left height=54 rowSpan=2 vAlign=bottom
width=219><A
href="http://www.arch.com/"><IMG alt="Arch Wireless
Spacer"
border=0 height=42 hspace=30
src="/images/logo_1.gif"
width=119></A></TD>
<TD align=right vAlign=top width=800><A
class=topnavlinks
href="http://content.arch.com/sitemap/">Site Map
</A><SPAN
class=revtype><SPAN class=revtype>|</SPAN> </SPAN><A
class=topnavlinks
href="http://content.arch.com/contact/">Contact
Us</A> <span class="revtype"><span class="revtype">|</span>
</span> <a href="http://search.arch.com"
class="topnavlinks">Search</a> </TD>
</TR>
<TR>
<TD align=left height=43 vAlign=bottom width=800>
<TABLE border=0 cellPadding=2 cellSpacing=1
width="99%">
<TBODY>
<TR align=middle>
<TD colSpan=6><IMG border=0 height=1
src="/images/space.gif" width=470></TD></TR>
<TR align=middle>
<TD noWrap><IMG alt=spacer border=0 height=10
src="/images/space.gif" width=10></TD>
<TD noWrap><A class=topnavlinksbold
href="http://content.arch.com/about/">About
Arch</A></TD>
<TD noWrap><A class=topnavlinksbold
href="http://content.arch.com/products/">Products &
Services</A></TD>
<TD noWrap><A class=topnavlinksbold
href="http://content.arch.com/custserv/">Customer
Service</A></TD>
<TD noWrap><A class=topnavlinksbold
href="http://store.arch.com/">Online
Store</A></TD>
<TD noWrap><A class=topnavlinksbold
href="/message/">Send A
Page</A> </TD></TR>
<TR align=middle>
<TD colSpan=6 height=2 noWrap><IMG
alt="bottom nav spacer" border=0 height=3
src="/images/space.gif"
width=1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD vAlign=top width=203><A
href="http://www.arch.com/"><IMG
border=0 height=38 hspace=21
src="/images/logo_2.gif"
width=124></A></TD>
<TD align=left colSpan=2 vAlign=top>
<TABLE border=0 cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD><IMG height=24
src="/images/spsupporttagline.gif"
width=458></TD></TR>
<TR>
<TD
align=middle> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<!-- Change from left to center and width to 100% from 777 -->
<TABLE ALIGN="CENTER" BORDER="0" CELLSPACING="0" CELLPADDING="0"
WIDTH="100%">
<TR>
<TD ALIGN="CENTER">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD align="center">
<FORM NAME="Status" ACTION="/cgi-bin/wwwstatus.cgi"
METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="trans_num" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="gw_pin" VALUE="
8002504133
">
<span class="smtextbold">Step 2</span>
<BR>
Please enter the message you would like sent to<BR><BR>
<span class="smtextbold">
8002504133
</span>
or
<INPUT TYPE="SUBMIT" NAME="FUNCTION" VALUE="Request Message
Status">
</FORM></TD>
</TR>
</TABLE>
<FORM ACTION="/cgi-bin/wwwtwoway.cgi" NAME="Terminal"
METHOD="POST" ONSUBMIT="return validate();">
<INPUT TYPE="HIDDEN" NAME="gw_pin" VALUE="
8002504133
">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD COLSPAN="2" ALIGN="CENTER">
<TEXTAREA ROWS="5" COLS="40" NAME="MSSG" WRAP="SOFT"
onBlur="checkLength();"
</TEXTAREA><BR>
<INPUT TYPE="TEXT" NAME="currentLength" SIZE="3"
onFocus="document.Terminal.firstSubmit.focus();">
Characters of 500 Character Maximum
<BR>
<INPUT TYPE="SUBMIT" NAME="firstSubmit"
VALUE="Send"><BR><BR></TD>
</TR>
<TR>
<TD>
<span class="smtextbold">Response Route:</span></TD>
<TD ALIGN="RIGHT">
<SELECT NAME="resp_route">
<OPTION SELECTED> None</OPTION>
<OPTION VALUE="Pager"> Arch Interactive Pager</OPTION>
<OPTION VALUE="Email"> E-Mail Address</OPTION>
</SELECT></TD>
</TR>
<TR>
<TD COLSPAN="2">
<span class="smtextbold">Response Address:</span>
<BR>
<INPUT TYPE="TEXT" NAME="resp_addr" SIZE="42"><BR><BR>
<span class="smtextbold">Notify me upon delivery</span>
<INPUT TYPE="CHECKBOX" NAME="confirm_receipt_str"
VALUE="confirm_page_delivery"><BR><BR>
</TD>
</TR>
<TR>
<TD ALIGN="CENTER" COLSPAN="2">
The fields below are for 2 Way pagers only</TD>
</TR>
<TR>
<TD ALIGN="CENTER" COLSPAN="2">
<span class="smtextbold">Send custom response
choices:</span></TD>
</TR>
<TR>
<TD>
<INPUT TYPE="TEXT" NAME="resp_a_string" SIZE="20"
MAXLENGTH="20" onBlur="checkLength();"><BR>
<INPUT TYPE="TEXT" NAME="resp_b_string" SIZE="20"
MAXLENGTH="20" onBlur="checkLength();"><BR>
<INPUT TYPE="TEXT" NAME="resp_c_string" SIZE="20"
MAXLENGTH="20" onBlur="checkLength();"><BR>
</TD>
<TD ALIGN="RIGHT">
<INPUT TYPE="TEXT" NAME="resp_d_string" SIZE="20"
MAXLENGTH="20" onBlur="checkLength();"><BR>
<INPUT TYPE="TEXT" NAME="resp_e_string" SIZE="20"
MAXLENGTH="20" onBlur="checkLength();"><BR>
<INPUT TYPE="TEXT" NAME="resp_f_string" SIZE="20"
MAXLENGTH="20" onBlur="checkLength();"><BR>
</TD>
</TR>
</TABLE>
<INPUT TYPE="SUBMIT" VALUE="Send"><p>
<A HREF="http://content.arch.com/faq/"
STYLE="TEXT-DECORATION: NONE">Frequently
Asked Questions</A></p>
</FORM></TD>
</TR>
</TABLE>
</TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD align=center>
<TABLE align=center border=0 cellPadding=0 cellSpacing=1
height=26
width="100%">
<TR align=middle bgColor=#f9f9f9>
<TD bgColor=#00257e height=1><IMG alt=spacer border=0
height=1
src="images/space.gif" width=1></TD>
</TR>
<TBODY>
<TR align=middle bgColor=#f9f9f9>
<TD height=20 align="center"><A
href="http://content.arch.com/about/">About
Arch</A> |<A href="http://content.arch.com/products/">
Products
& Services</A> | <A
href="http://content.arch.com/custserv/">Customer
Service<SPAN></SPAN></A>
| <A href="http://store.arch.com/">Online Store</A> |
<A href="https://myaccount.arch.com/login.jsp">My
Account Login</A> | <A
href="http://content.arch.com/sitemap/">Site Map</A> | <A
href="http://content.arch.com/news/">News</A> | <a
href="http://content.arch.com/privacy/">Privacy Policy</a>
| <a
href="/message/"></a><a
href="http://search.arch.com">Search</a> | <a
href="/message/"></a><A
href="/message/">Send a Page</A></TD>
</TR>
<TR align=middle bgColor=#f9f9f9>
<TD bgColor=#00257e height=1><IMG alt=spacer border=0
height=1
src="images/space.gif" width=1></TD>
</TR>
</TBODY>
</TABLE>
<BR>
<A
href="http://content.arch.com/copyright/">© 2005 Arch Wireless
Operating
Company, Inc.</A></TD>
</TR>
</TABLE></BODY></HTML>
<!-- twoway-M4.WME -->