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:

Date search bug (1998) [newcart] (1998) using cookies to prevent access (2000) logic help (1998) Replace Statement (1997) Mac v. NT (1998) Problems with [Applescript] (1997) WC 2.0 frames feature (1997) Emailed problem (2000) WebCatalog occasionally stopping (2001) WCS Newbie question (1997) country of origin from IPADDRESS??? (2001) price carry over (1997) Snippet for finding unused Header Fields in the Orders.db (2003) many-to-one problem (1998) calculating tax rates, mail order solutions and version 2 (1997) webcat method for waiting specific amount of time? (2000) Listfiles and nothing found (2001) Roundup function? (1997) [WebDNA] OT: Issue with some clouds (2009)