Re: [WebDNA] TCPConnect assist

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112926
interpreted = N
texte = 513 --Apple-Mail=_10472916-767A-4F51-AC8D-F4D867F6F4F4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks, Ken, I added a host param to TCPSend, but still empty. The = target server is Windows IIS 8 with ASP.net v4.0.30319. I have to study = https://www.w3.org/Protocols/HTTP/1.0/spec.html and then figure out what = parameters my TCPConnect & TCPSend might be missing. Most sites like this target server use a CMS and they all send lots of = needless and redundant cruft. They=E2=80=99re also aggressive about = preventing cross domain hacking, which always seems odd since the point = of websites is to distribute content. I guess they=E2=80=99re trying to = prevent Comcast from accidentally selling something. TCPConnect & TCPSend should emulate a person at a browser, but also = allow definition of the browser, OS, IP, etc. I=E2=80=99ve had good = luck with this in the distant past. With modern CMS systems, I think = it=E2=80=99s just a matter of hunting down the parameters necessary to = trick the server into serving a non-human browser. An organized list of those requirements covering various combinations of = browser, server & OS would be really handy. Anyone else notice any = glaring omissions in this code: [!]=3D=3D=3D=3D=3D Make Connection =3D=3D=3D=3D=3D[/!] [text]comcast_result=3D[tcpconnect = host=3Dbusiness.comcast.com&port=3D443&ssl=3DT][!] [/!][TCPSend skipheader=3DT]GET /ethernet/private-line = HTTP/1.0[UnURL]%0D%0A[/UnURL][!] [/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[UnURL]%0D%0A[/UnURL][!] [/!]host: business.comcast.com[UnURL]%0D%0A[/UnURL][!] [/!][/TCPSend][!] [/!][/tcpconnect][/text] comcast_result=3D[comcast_result] > On Aug 26, 2016, at 6:52 AM, Kenneth Grome = wrote: >=20 > Try putting a Host parameter inside the tcpsend context. =20 >=20 > It doesn't matter that host is specified in the tcpconnect tag=20 > because it is frequently required as a parameter in the tcpsend=20 > context, too. This always works for me: >=20 > [text]host=3Dwww.paypal.com[/text] > [text]path=3D/cgi-bin/webscr[/text] > [text]n=3D[unurl]%0D%0A[/unurl][/text] > [text]content=3D... name=3Dvalue pairs go here ...[/text] >=20 > [tcpconnect host=3D[host]&port=3D443&ssl=3DT] > [tcpsend skipheader=3DT]POST [path] HTTP/1.0[n][!] > [/!]Host: [host][n][!] > [/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[n][!] > [/!]Content-Type: text/namevalue[n][!] > [/!]Content-Length: [countchars][content][/countchars][n][n][!] > [/!][content][n][!] > [/!][/tcpsend] > [/tcpconnect] >=20 > This has been the required syntax for years (for most servers). =20 > If it's not mentioned in the docs it should be. >=20 > Regards, > Kenneth Grome > WebDNA Solutions > http://www.webdnasolutions.com > Web Database Systems and Linux Server Administration > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us --Apple-Mail=_10472916-767A-4F51-AC8D-F4D867F6F4F4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks, Ken, I added = a host param to TCPSend, but still empty.  The target server is = Windows IIS 8 with ASP.net = v4.0.30319.  I have to study https://www.w3.org/Protocols/HTTP/1.0/spec.html and = then figure out what parameters my TCPConnect & TCPSend might = be missing.

Most sites like this target = server use a CMS and they all send lots of needless and redundant cruft. =  They=E2=80=99re also aggressive about preventing cross domain = hacking, which always seems odd since the point of websites is to = distribute content. I guess they=E2=80=99re trying to prevent Comcast = from accidentally selling something.

TCPConnect & TCPSend should emulate a person at a = browser, but also allow definition of the browser, OS, IP, etc. =  I=E2=80=99ve had good luck with this in the distant past. =  With modern CMS systems, I think it=E2=80=99s just a matter = of hunting down the parameters necessary to trick the server into = serving a non-human browser.

An organized = list of those requirements covering various combinations of browser, = server & OS would be really handy. Anyone else notice any = glaring omissions in this code:

<!-- HAS_WEBDNA_TAGS -->

[!]=3D=3D=3D=3D=3D Make Connection = =3D=3D=3D=3D=3D[/!]
[text]comcast_result=3D[tcpconnect = host=3Dbusiness.comcast.com&port=3D443&ssl=3DT][!]
[/!][TCPSend skipheader=3DT]GET /ethernet/private-line = HTTP/1.0[UnURL]%0D%0A[/UnURL][!]
[/!]USER-AGENT: = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[UnURL]%0D%0A[/UnURL][!]
[/!]host: = business.comcast.com[UnURL]%0D%0A[/UnURL][!]
[/!][/TCPSend][!]
[/!][/tcpconnect][/text]


comcast_result=3D[comcast_result]





On Aug 26, 2016, at 6:52 AM, Kenneth Grome = <ken@webdnasolutions.com> wrote:

Try = putting a Host parameter inside the tcpsend context.  

It doesn't matter that host is specified in = the tcpconnect tag 
because it is frequently required = as a parameter in the tcpsend 
context, too. =  This always works for me:

[text]host=3Dwww.paypal.com[/text]
[text]path=3D/cgi-bin/webscr[/text]
[text]n=3D[unurl]%0D%0A[/unurl][/text]
[text]content=3D... name=3Dvalue pairs go here ...[/text]

[tcpconnect = host=3D[host]&port=3D443&ssl=3DT]
[tcpsend = skipheader=3DT]POST [path] HTTP/1.0[n][!]
[/!]Host: = [host][n][!]
[/!]User-Agent: Mozilla/4.0 (compatible; MSIE = 5.01; Windows NT 5.0)[n][!]
[/!]Content-Type: = text/namevalue[n][!]
[/!]Content-Length: = [countchars][content][/countchars][n][n][!]
[/!][content][n][!]
[/!][/tcpsend]
[/tcpconnect]

This has been the = required syntax for years (for most servers).  
If = it's not mentioned in the docs it should be.

Regards,
Kenneth Grome
WebDNA = Solutions
http://www.webdnasolutions.com
Web = Database Systems and Linux Server Administration
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To = unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_10472916-767A-4F51-AC8D-F4D867F6F4F4-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] TCPConnect assist (Patrick McCormick 2016)
  2. Re: [WebDNA] TCPConnect assist (Stuart Tremain 2016)
  3. Re: [WebDNA] TCPConnect assist (Patrick McCormick 2016)
  4. Re: [WebDNA] TCPConnect assist (Patrick McCormick 2016)
  5. Re: [WebDNA] TCPConnect assist (Christer Olsson 2016)
  6. Re: [WebDNA] TCPConnect assist (Patrick McCormick 2016)
  7. Re: [WebDNA] TCPConnect assist (Kenneth Grome 2016)
  8. Re: [WebDNA] TCPConnect assist (Stuart Tremain 2016)
  9. Re: [WebDNA] TCPConnect assist (Stuart Tremain 2016)
  10. Re: [WebDNA] TCPConnect assist (Stuart Tremain 2016)
  11. Re: [WebDNA] TCPConnect assist (Patrick McCormick 2016)
  12. Re: [WebDNA] TCPConnect assist (Stuart Tremain 2016)
  13. Re: [WebDNA] TCPConnect assist (Patrick McCormick 2016)
  14. Re: [WebDNA] TCPConnect assist (Stuart Tremain 2016)
  15. [WebDNA] TCPConnect assist (Patrick McCormick 2016)
513 --Apple-Mail=_10472916-767A-4F51-AC8D-F4D867F6F4F4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks, Ken, I added a host param to TCPSend, but still empty. The = target server is Windows IIS 8 with ASP.net v4.0.30319. I have to study = https://www.w3.org/Protocols/HTTP/1.0/spec.html and then figure out what = parameters my TCPConnect & TCPSend might be missing. Most sites like this target server use a CMS and they all send lots of = needless and redundant cruft. They=E2=80=99re also aggressive about = preventing cross domain hacking, which always seems odd since the point = of websites is to distribute content. I guess they=E2=80=99re trying to = prevent Comcast from accidentally selling something. TCPConnect & TCPSend should emulate a person at a browser, but also = allow definition of the browser, OS, IP, etc. I=E2=80=99ve had good = luck with this in the distant past. With modern CMS systems, I think = it=E2=80=99s just a matter of hunting down the parameters necessary to = trick the server into serving a non-human browser. An organized list of those requirements covering various combinations of = browser, server & OS would be really handy. Anyone else notice any = glaring omissions in this code: [!]=3D=3D=3D=3D=3D Make Connection =3D=3D=3D=3D=3D[/!] [text]comcast_result=3D[tcpconnect = host=3Dbusiness.comcast.com&port=3D443&ssl=3DT][!] [/!][TCPSend skipheader=3DT]GET /ethernet/private-line = HTTP/1.0[unurl]%0D%0A[/UnURL][!] [/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[unurl]%0D%0A[/UnURL][!] [/!]host: business.comcast.com[unurl]%0D%0A[/UnURL][!] [/!][/TCPSend][!] [/!][/tcpconnect][/text] comcast_result=3D[comcast_result] > On Aug 26, 2016, at 6:52 AM, Kenneth Grome = wrote: >=20 > Try putting a Host parameter inside the tcpsend context. =20 >=20 > It doesn't matter that host is specified in the tcpconnect tag=20 > because it is frequently required as a parameter in the tcpsend=20 > context, too. This always works for me: >=20 > [text]host=3Dwww.paypal.com[/text] > [text]path=3D/cgi-bin/webscr[/text] > [text]n=3D[unurl]%0D%0A[/unurl][/text] > [text]content=3D... name=3Dvalue pairs go here ...[/text] >=20 > [tcpconnect host=3D[host]&port=3D443&ssl=3DT] > [tcpsend skipheader=3DT]POST [path] HTTP/1.0[n][!] > [/!]Host: [host][n][!] > [/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[n][!] > [/!]Content-Type: text/namevalue[n][!] > [/!]Content-Length: [countchars][content][/countchars][n][n][!] > [/!][content][n][!] > [/!][/tcpsend] > [/tcpconnect] >=20 > This has been the required syntax for years (for most servers). =20 > If it's not mentioned in the docs it should be. >=20 > Regards, > Kenneth Grome > WebDNA Solutions > http://www.webdnasolutions.com > Web Database Systems and Linux Server Administration > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us --Apple-Mail=_10472916-767A-4F51-AC8D-F4D867F6F4F4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks, Ken, I added = a host param to TCPSend, but still empty.  The target server is = Windows IIS 8 with ASP.net = v4.0.30319.  I have to study https://www.w3.org/Protocols/HTTP/1.0/spec.html and = then figure out what parameters my TCPConnect & TCPSend might = be missing.

Most sites like this target = server use a CMS and they all send lots of needless and redundant cruft. =  They=E2=80=99re also aggressive about preventing cross domain = hacking, which always seems odd since the point of websites is to = distribute content. I guess they=E2=80=99re trying to prevent Comcast = from accidentally selling something.

TCPConnect & TCPSend should emulate a person at a = browser, but also allow definition of the browser, OS, IP, etc. =  I=E2=80=99ve had good luck with this in the distant past. =  With modern CMS systems, I think it=E2=80=99s just a matter = of hunting down the parameters necessary to trick the server into = serving a non-human browser.

An organized = list of those requirements covering various combinations of browser, = server & OS would be really handy. Anyone else notice any = glaring omissions in this code:

<!-- HAS_WEBDNA_TAGS -->

[!]=3D=3D=3D=3D=3D Make Connection = =3D=3D=3D=3D=3D[/!]
[text]comcast_result=3D[tcpconnect = host=3Dbusiness.comcast.com&port=3D443&ssl=3DT][!]
[/!][TCPSend skipheader=3DT]GET /ethernet/private-line = HTTP/1.0[unurl]%0D%0A[/UnURL][!]
[/!]USER-AGENT: = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[unurl]%0D%0A[/UnURL][!]
[/!]host: = business.comcast.com[unurl]%0D%0A[/UnURL][!]
[/!][/TCPSend][!]
[/!][/tcpconnect][/text]


comcast_result=3D[comcast_result]





On Aug 26, 2016, at 6:52 AM, Kenneth Grome = <ken@webdnasolutions.com> wrote:

Try = putting a Host parameter inside the tcpsend context.  

It doesn't matter that host is specified in = the tcpconnect tag 
because it is frequently required = as a parameter in the tcpsend 
context, too. =  This always works for me:

[text]host=3Dwww.paypal.com[/text]
[text]path=3D/cgi-bin/webscr[/text]
[text]n=3D[unurl]%0D%0A[/unurl][/text]
[text]content=3D... name=3Dvalue pairs go here ...[/text]

[tcpconnect = host=3D[host]&port=3D443&ssl=3DT]
[tcpsend = skipheader=3DT]POST [path] HTTP/1.0[n][!]
[/!]Host: = [host][n][!]
[/!]User-Agent: Mozilla/4.0 (compatible; MSIE = 5.01; Windows NT 5.0)[n][!]
[/!]Content-Type: = text/namevalue[n][!]
[/!]Content-Length: = [countchars][content][/countchars][n][n][!]
[/!][content][n][!]
[/!][/tcpsend]
[/tcpconnect]

This has been the = required syntax for years (for most servers).  
If = it's not mentioned in the docs it should be.

Regards,
Kenneth Grome
WebDNA = Solutions
http://www.webdnasolutions.com
Web = Database Systems and Linux Server Administration
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To = unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_10472916-767A-4F51-AC8D-F4D867F6F4F4-- . Patrick McCormick

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:

Reversed words (1997) Protect vs Authenicate (1997) Re:listfiles-looking for slick solution (1997) stumped on simple sort (1999) using showpage and showcart commands (1996) Dealing with return characters (2004) Re:2nd WebCatalog2 Feature Request (1996) Searchable WebCat (etc.) Docs ? (1997) remotely add + sign (1997) WC2b15 File Corruption (1997) OT: RAID Options (2004) Smith Micro - no competition (2000) another problem (1997) Conveting Characters to Graphics (1997) FTP via Shell Question (2005) WebCat2: multiple currency support (1997) redirect problem - bug? (2003) Goofy Date Sorting (1998) Quit revisited (1997) WebCatalog can't find database (1997)