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 Software Website 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:

    
  1. Re: why won't this TCPConnect/Send work? ( Joe D'Andrea 2004)
  2. Re: why won't this TCPConnect/Send work? ( John Hill 2004)
  3. why won't this TCPConnect/Send work? ( Joe D'Andrea 2004)
  4. why won't this TCPConnect/Send work? ( Joe D'Andrea 2004)
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 Software Website 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:

WebCatalog NT (1996) Major bug report on rootbeer (1997) emailer settings and control questions (1997) HTML Email and Images (2004) [WebDNA] Graphite Forums (2012) Pithy questions on webcommerce & siteedit (1997) Can't Update records (1997) Make sure I understand this??? (1997) Robots fill event log (1997) TeaRoom Order fields email account remain empty even though thewy are filled. (1997) Just Testing (1997) {Grouping} Docs (1999) using listfiles to build a database? more (2000) Creating main- and sub-category search (1997) [showif] problem (1999) WebCat cannot handle compatible search parameters? (1997) How To get Some Help (2003) Multiple Merchant Accounts? (1997) WebCatalog for guestbook ? (1997) Search returns all, not 20 (1997)