Re: [TCPConnect] Errors

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 51402
interpreted = N
texte = Thanks Jon and Alain. I knew it was something simple! On 6/27/03 3:05 PM, "John Peacock" wrote: > Clint Davis wrote: >> What's wrong with this code? >> >> [TCPConnect host=www.w3.weather.com/weather/local/&port=80] >> [TCPSend]GET /47708 HTTP/1.0[UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend] >> [/TCPConnect] >> > > Well, for one thing, [TCPConnect] only accepts the host name, not the full > path. > Try this instead: > >> [text]CRLF=[UnURL]%0D%0A%0D%0A[/UnURL] >> >> [TCPConnect host=www.w3.weather.com&port=80] >> [TCPSend]GET /weather/local/47708 HTTP/1.0[CRLF]Host: >> www.w3.weather.com[CRLF][CRLF][/TCPSend] >> [/TCPConnect] > > The "Host:" may not be necessary, but it is a good idea in any case. > > HTH > > John --------------------------------------------------------------------- Clint Davis Webmaster / Interactive Media Specialist Gray Loon Marketing Group, Inc. http://www.grayloon.com 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999 --------------------------------------------------------------------- ------------------------------------------------------------- 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: [TCPConnect] Errors ( Clint Davis 2003)
  2. Re: [TCPConnect] Errors ( Alain Russell 2003)
  3. Re: [TCPConnect] Errors ( John Peacock 2003)
  4. Re: [TCPConnect] Errors ( Glenn Busbin 2003)
  5. [TCPConnect] Errors ( Clint Davis 2003)
Thanks Jon and Alain. I knew it was something simple! On 6/27/03 3:05 PM, "John Peacock" wrote: > Clint Davis wrote: >> What's wrong with this code? >> >> [TCPConnect host=www.w3.weather.com/weather/local/&port=80] >> [tcpsend]GET /47708 HTTP/1.0[unurl]%0D%0A%0D%0A[/UnURL][/TCPSend] >> [/TCPConnect] >> > > Well, for one thing, [tcpconnect] only accepts the host name, not the full > path. > Try this instead: > >> [text]CRLF=[unurl]%0D%0A%0D%0A[/UnURL] >> >> [TCPConnect host=www.w3.weather.com&port=80] >> [tcpsend]GET /weather/local/47708 HTTP/1.0[CRLF]Host: >> www.w3.weather.com[CRLF][CRLF][/TCPSend] >> [/TCPConnect] > > The "Host:" may not be necessary, but it is a good idea in any case. > > HTH > > John --------------------------------------------------------------------- Clint Davis Webmaster / Interactive Media Specialist Gray Loon Marketing Group, Inc. http://www.grayloon.com 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999 --------------------------------------------------------------------- ------------------------------------------------------------- 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/ Clint Davis

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:

all records returned. (1997) SPAM (OT) (2004) Summing fields (1997) Help name our technology! (1997) Formulas.db (1997) [WebDNA] Is anybody running a CAPTCHA? (2017) Questions (1998) WebCatalog for guestbook ? (1997) Wishlist;: Was Runtime version ... (2003) email code (1998) Help :( (2001) Date format problems (1997) WebCatalog can't find database (1997) [WebDNA] weekday question (2013) WebDNA for Dummies (2004) Add a Blog to your site. (2002) Help formatting search results w/ table (1997) Re:2.1 pricing? (1998) can we get string variables? (1998) Nested vs conditional (1997)