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:

Line items in table cells (1997) Overseas project (2000) Wrapping text (1998) Problems with date math (1997) Strange Form Occurrence on Log In Pages (2005) WebMerchant Mac 3.0 beta available (1998) WebCat2: Items xx to xx shown, etc. (1997) showcart (2000) WebCatalog 402 Released (2001) creating a 60 fields database (1997) More on the email templates (1997) [WriteFile] problems (1997) writing db to disk (1997) Help! WebCat2 bug (1997) Where is the secure setting for text variables? (2003) Payment Calculator (2000) Only charge card when product shipped ? (1997) Linebreak as a delimiter in listwords? (2003) search for all (1998) [WebDNA] WebDNA Server 8.6.2 snapshot available (2019)