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-F4D867F6F4F4Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=utf-8Thanks, 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-F4D867F6F4F4Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=utf-8Thanks, 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 tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us--Apple-Mail=_10472916-767A-4F51-AC8D-F4D867F6F4F4--.
Associated Messages, from the most recent to the oldest:
513--Apple-Mail=_10472916-767A-4F51-AC8D-F4D867F6F4F4Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=utf-8Thanks, 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-F4D867F6F4F4Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=utf-8Thanks, 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 tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug 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:
Nested search (1997)
Showif, Hideif reverse logic ? (1997)
Menu to select product variations (1997)
Robert Minor duplicate mail (1997)
WebDNA problem (2006)
Quitting WebMerchant ? (1997)
Feature: TCPconnect via SSL (1999)
Extended [ConvertChars] (1997)
Re:One more time (1997)
Comments in db? (1997)
ASP and WebDNA (1998)
Header values are not accepted (1998)
Why would prices no appear in cart (2000)
Show shoppingcart after remove last item (1997)
Encyption mail was Suggestions for Topics ... (1998)
WebCatalog2 Feature Feedback (1996)
WebCatalog memory error. (1998)
Creating main- and sub-category search (1997)
Postdata expired from cache (2004)
Sorry WebDNA server not running. error (2002)