Re: why won't this TCPConnect/Send work?
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 60620
interpreted = N
texte = You many need a form encoding parameter in the post data.>IF you go here: http://oprs.co.monmouth.nj.us/Oprs/taxboard/HeadFrame.aspx?idx=mod>you'll see a form inside a frame. I took the elements of the form and created a TCPconnect/send combo that is supposed to mimic a browser submitting the filled in form. The code is below. What I get back from the server is not the page I expect. Any thoughts?>>>
in GetBlock
>[!] ---------- Define Host and Page ---------- [/!]>[text show=f]host=tax1.co.monmouth.nj.us[/text]>[text show=f]page=/cgi-bin/prc6.cgi[/text]>[text show=f]crlf=[UnURL]%0D%0A[/UnURL][/text]>>[!]>[text show=f&secure=f]transid=EV[/text]>[text show=f&secure=f]p_des=[/text]>[text show=f&secure=f]p_cust_id=[/text]>[text show=f&secure=f]p_invoicenum=[/text]>[/!]>>[text show=f]post_data=menu=srch&[!]>[/!]srch_type=1&[!]>[/!]selcount=1301&[!]>[/!]district=1304&[!]>[/!]p_loc=[url]1210 second ave[/url][!]>[/!]adv=1&[!]>[/!]out_type=1&>[/text]>>[!]
postdata=[post_data]
[/!]>>[!] ---------- Run The Connect ---------- [/!]>[text show=f]response=[TCPConnect host=[host]&port=80&SSL=F]>[TCPSend]POST [page] HTTP/1.1[crlf][!]>[/!]Host: [host]:80[crlf][!]>[/!]Referer: oprs.co.monmouth.nj.us[crlf][!]>[/!]Content-length: [countchars][post_data][/countchars][crlf][crlf][!]>[/!][post_data][crlf][!]>[/!][UnURL]%0D%0A%0D%0A[/unurl][/TCPSend]>[/TCPConnect][/text]>>
response=[response]
>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list
.>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/-- --------------------------------- John A. Hill Oak Hill SoftwareWebsite Development/Consulting john@oakhillsoftware.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
You many need a form encoding parameter in the post data.>IF you go here: http://oprs.co.monmouth.nj.us/Oprs/taxboard/HeadFrame.aspx?idx=mod>you'll see a form inside a frame. I took the elements of the form and created a TCPconnect/send combo that is supposed to mimic a browser submitting the filled in form. The code is below. What I get back from the server is not the page I expect. Any thoughts?>>>
in GetBlock
>[!] ---------- Define Host and Page ---------- [/!]>[text show=f]host=tax1.co.monmouth.nj.us[/text]>[text show=f]page=/cgi-bin/prc6.cgi[/text]>[text show=f]crlf=[unurl]%0D%0A[/UnURL][/text]>>[!]>[text show=f&secure=f]transid=EV[/text]>[text show=f&secure=f]p_des=[/text]>[text show=f&secure=f]p_cust_id=[/text]>[text show=f&secure=f]p_invoicenum=[/text]>[/!]>>[text show=f]post_data=menu=srch&[!]>[/!]srch_type=1&[!]>[/!]selcount=1301&[!]>[/!]district=1304&[!]>[/!]p_loc=[url]1210 second ave[/url][!]>[/!]adv=1&[!]>[/!]out_type=1&>[/text]>>[!]
postdata=[post_data]
[/!]>>[!] ---------- Run The Connect ---------- [/!]>[text show=f]response=[TCPConnect host=[host]&port=80&SSL=F]>[tcpsend]POST [page] HTTP/1.1[crlf][!]>[/!]Host: [host]:80[crlf][!]>[/!]Referer: oprs.co.monmouth.nj.us[crlf][!]>[/!]Content-length: [countchars][post_data][/countchars][crlf][crlf][!]>[/!][post_data][crlf][!]>[/!][unurl]%0D%0A%0D%0A[/unurl][/TCPSend]>[/TCPConnect][/text]>>
response=[response]
>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/-- --------------------------------- John A. Hill Oak Hill SoftwareWebsite Development/Consulting john@oakhillsoftware.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
John Hill
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Multiple catalog databases and showcart (1997)
addlineitems within formvariable loop (1998)
[Sum] function? (1997)
This message couldn't reach the list! (1998)
Caching [include] files ... (1997)
Triggers (2003)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
WebCat2b15MacPlugin - [protect] (1997)
New Featured Site (1999)
[ShowCart] and GET vs. POST (1997)
Bug? (1997)
Re:no [search] with NT (1997)
[append] problems (2003)
[OT] See QT? (Was Eaaaasy FTP...) (2003)
PCS Customer submissions ? (1997)
Re:Emailer setup (1997)
Shell Script needed (2003)
PCS Frames (1997)
RE: Error: template (1997)
WebCatalog Features (1997)