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:

[math] storage of variables (1997) Time comparison question (1998) Group Updates (1998) So many lookers, hey smith micro (2003) Re2: Calculating multiple shipping... (1997) Math (1997) Sort Order on a page search (1997) More on the email templates (1997) Filling in fields conditionally (1998) PhotoMill -> PhotoMaster (1997) WebCat2b12 - nesting [tags] (1997) WC2.0 Memory Requirements (1997) Banners (1997) Only charge card when product shipped ? (1997) customizing the color of user's pages (1997) Subtotal Not Calculated on Invoice.html (1998) Problems with [Applescript] (1997) Include Files (1998) Thanks ! (1997) Beta (?) version of WebCatalog 2.1 (1998)