Re: Basics of tcpconnect

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 68149
interpreted = N
texte = Thanks Scott. For some reason, TCPConnect to digg.com gets routed to another page. TCPConnect also does this for other services (like our firm's www.ChipIn.com). So, for this prototype I am working on I've just moved to PHP to remotely grab the pages I need. If anyone has a way to remotely grab www.digg.com with TCPConnect, please do share. Maybe we need to send a certain set of headers along with the request. Thanks, Olin -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Scott Walters Sent: Tuesday, November 14, 2006 11:50 AM To: WebDNA Talk Subject: Re: Basics of tcpconnect I haven't reviewed the history of this thread or wether or it's been resolved yet. But what little I have read, makes me think that the redirecting could be being caused by a router at the hosting location or by www.digg.com's DNS server host setup... Scott Walters scott@ideassoftware.com ----- Original Message ----- From: "Terry Wilson" To: "WebDNA Talk" Sent: Sunday, November 12, 2006 8:27 AM Subject: Re: Basics of tcpconnect > That's right, that's what it's supposed to do. You need to write code to > deal with the result. Set a text variable: > > [text]whatcameback=[TCPConnect host=digg.com&port=80] > [TCPSend]GET / HTTP/1.0[UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend] > [/TCPConnect][/text] > > Then you can use [middle] to extract something, either to display directly > on your page or to set another text variable. Depends on what you expect > to extract. Let's say you wanted to set a text variable for the title of > this page. You'd write > > [text]pagetitle=[middle > startafter=&endbefore=][whatcameback][/middle][/text] > > If you are looking to send variables with the request, do another email > archive search for help with authorize.net and tcp. Examples for that have > been posted before. Basically you create the content of your tcpsend with > all your variables. > > HTH, > Terry > > >>--------------------------------------------------------_156740306_- >> WebDNA Talk Digest #2324 >> >> 1) Basics of tcpconnect >> by "Olin Lagon" >> >>This digest is sent to you because you are subscribed to >> the mailing list . >>To unsubscribe, E-mail to: >>To switch to the FEED mode, E-mail to >> >>Send administrative queries to >> >> >>--------------------------------------------------------_156740306_- >>From: "Olin Lagon" >>Subject: Basics of tcpconnect >>Date: Sat, 11 Nov 2006 10:21:50 -1000 >>Message-ID: <002a01c705cf$11f1d8e0$6501a8c0@olin> >>Content-Type: text/plain; >> charset="US-ASCII" >>Content-Transfer-Encoding: 7bit >> >>Heh can anyone help me on tcpconnect? I copied all of the examples from >>the >>manual and tried a few things I found in the email archive. Can't seem to >>write a tcpconnect to grab the contents of any Webpage. Trying >>specifically >>to do a get and load up a bunch of args. Here is one that I have tried >>direct from the manual >> >>I took this from the docs >> >>[TCPConnect host=digg.com&port=80] >>[TCPSend]GET / HTTP/1.0[UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend] >>[/TCPConnect] >> >>In this example just trying to pull the homepage from Digg. I get this >> >>---------------------------------- >>HTTP/1.1 302 Found >>Date: Sat, 11 Nov 2006 20:16:40 GMT >>Server: Apache >>Location: http://diggtheblog.blogspot.com/ >>Content-Length: 279 >>Keep-Alive: timeout=5, max=98 >>Connection: Keep-Alive >>Content-Type: text/html; charset=iso-8859-1 >> >> >> >>302 Found >> >>

Found

>>

The document has moved >href="http://diggtheblog.blogspot.com/">here.

>> >>
>>
Apache Server at blog.digg.com Port 80
>> >>---------------------------------- >> >>Any ideas??? Thanks! Olin >> >> >>--------------------------------------------------------_156740306_- >>------------------------------------------------------------- >>Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging >>Server. >>To end your Mail problems go to . >>--------------------------------------------------------_156740306_--- > > -- > Terry Wilson | terry@terryfic.com | http://terryfic.com > http://WhosComing.com - a simplified, affordable online reservation system > http://TightJacket.com -- stylish protection for your laptop > -------------------------------------------------------------------------- > Attitude is the only difference between ordeal and adventure. > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ ------------------------------------------------------------- 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: Basics of tcpconnect ( "Olin Lagon" 2006)
  2. Re: Basics of tcpconnect ( Jesse Proudman 2006)
  3. Re: Basics of tcpconnect ( "Olin Lagon" 2006)
  4. Re: Basics of tcpconnect ( "Scott Walters" 2006)
  5. Re: Basics of tcpconnect ( Jesse Proudman 2006)
  6. Re: Basics of tcpconnect ( "Olin Lagon" 2006)
  7. Re: Basics of tcpconnect ( Jesse Proudman 2006)
  8. Re: Basics of tcpconnect ( "Olin Lagon" 2006)
  9. Re: Basics of tcpconnect ( Jesse Proudman 2006)
  10. Re: Basics of tcpconnect ( "Olin Lagon" 2006)
  11. Re: Basics of tcpconnect ( Terry Wilson 2006)
  12. Basics of tcpconnect ( "Olin Lagon" 2006)
Thanks Scott. For some reason, TCPConnect to digg.com gets routed to another page. TCPConnect also does this for other services (like our firm's www.ChipIn.com). So, for this prototype I am working on I've just moved to PHP to remotely grab the pages I need. If anyone has a way to remotely grab www.digg.com with TCPConnect, please do share. Maybe we need to send a certain set of headers along with the request. Thanks, Olin -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Scott Walters Sent: Tuesday, November 14, 2006 11:50 AM To: WebDNA Talk Subject: Re: Basics of tcpconnect I haven't reviewed the history of this thread or wether or it's been resolved yet. But what little I have read, makes me think that the redirecting could be being caused by a router at the hosting location or by www.digg.com's DNS server host setup... Scott Walters scott@ideassoftware.com ----- Original Message ----- From: "Terry Wilson" To: "WebDNA Talk" Sent: Sunday, November 12, 2006 8:27 AM Subject: Re: Basics of tcpconnect > That's right, that's what it's supposed to do. You need to write code to > deal with the result. Set a text variable: > > [text]whatcameback=[TCPConnect host=digg.com&port=80] > [tcpsend]GET / HTTP/1.0[unurl]%0D%0A%0D%0A[/UnURL][/TCPSend] > [/TCPConnect][/text] > > Then you can use [middle] to extract something, either to display directly > on your page or to set another text variable. Depends on what you expect > to extract. Let's say you wanted to set a text variable for the title of > this page. You'd write > > [text]pagetitle=[middle > startafter=&endbefore=][whatcameback][/middle][/text] > > If you are looking to send variables with the request, do another email > archive search for help with authorize.net and tcp. Examples for that have > been posted before. Basically you create the content of your tcpsend with > all your variables. > > HTH, > Terry > > >>--------------------------------------------------------_156740306_- >> WebDNA Talk Digest #2324 >> >> 1) Basics of tcpconnect >> by "Olin Lagon" >> >>This digest is sent to you because you are subscribed to >> the mailing list . >>To unsubscribe, E-mail to: >>To switch to the FEED mode, E-mail to >> >>Send administrative queries to >> >> >>--------------------------------------------------------_156740306_- >>From: "Olin Lagon" >>Subject: Basics of tcpconnect >>Date: Sat, 11 Nov 2006 10:21:50 -1000 >>Message-ID: <002a01c705cf$11f1d8e0$6501a8c0@olin> >>Content-Type: text/plain; >> charset="US-ASCII" >>Content-Transfer-Encoding: 7bit >> >>Heh can anyone help me on tcpconnect? I copied all of the examples from >>the >>manual and tried a few things I found in the email archive. Can't seem to >>write a tcpconnect to grab the contents of any Webpage. Trying >>specifically >>to do a get and load up a bunch of args. Here is one that I have tried >>direct from the manual >> >>I took this from the docs >> >>[TCPConnect host=digg.com&port=80] >>[tcpsend]GET / HTTP/1.0[unurl]%0D%0A%0D%0A[/UnURL][/TCPSend] >>[/TCPConnect] >> >>In this example just trying to pull the homepage from Digg. I get this >> >>---------------------------------- >>HTTP/1.1 302 Found >>Date: Sat, 11 Nov 2006 20:16:40 GMT >>Server: Apache >>Location: http://diggtheblog.blogspot.com/ >>Content-Length: 279 >>Keep-Alive: timeout=5, max=98 >>Connection: Keep-Alive >>Content-Type: text/html; charset=iso-8859-1 >> >> >> >>302 Found >> >>

Found

>>

The document has moved >href="http://diggtheblog.blogspot.com/">here.

>> >>
>>
Apache Server at blog.digg.com Port 80
>> >>---------------------------------- >> >>Any ideas??? Thanks! Olin >> >> >>--------------------------------------------------------_156740306_- >>------------------------------------------------------------- >>Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging >>Server. >>To end your Mail problems go to . >>--------------------------------------------------------_156740306_--- > > -- > Terry Wilson | terry@terryfic.com | http://terryfic.com > http://WhosComing.com - a simplified, affordable online reservation system > http://TightJacket.com -- stylish protection for your laptop > -------------------------------------------------------------------------- > Attitude is the only difference between ordeal and adventure. > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ ------------------------------------------------------------- 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/ "Olin Lagon"

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:

off topic - dna snipets (1997) Not really WebCat (1997) sendmail and attachments (2004) LAST CHANCE! Anyone have a one-to-one messaging system? (1999) Quantity (1998) WebCatalog can't find database (1997) [WebDNA] Protect TextArea and other Input-Fields with WebDNA - (2009) Great product and great job ! (1997) Followup question re: checksum for credit cards? (1997) Passing a search through a form (2003) Help me... (1998) Question on TABLES (2003) changing order number (1998) Pass a form (2003) More on the email templates (1997) Multiple 'Users.db' files not possible (1997) Trunk-gator (1997) Forumulas.db & Variables (2002) RE: Cart Template (1997) Where is the secure setting for text variables? (2003)