Re: [TCPConnect] Errors

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 51400
interpreted = N
texte = 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 -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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)
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 -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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/ John Peacock

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:

Almost a there but..bye bye NetCloak (1997) Sku numbers (1997) Non expiring cookies again (*sorry*) (1999) Re:trouble (1997) Help! WebCat2 bug (1997) Wits end with this [sendmail] problem. ;) (2000) WebCat2 Append problem (B14Macacgi) (1997) Date Sorting (1997) test (2000) item sorting (1997) New commands in Final candidate (1997) Multiple catalog databases and showcart (1997) emailer (1997) [input]?? (1998) [cart] tag (2000) WebCatalog2 Feature Feedback (1996) Dates - Search and Sorting (1999) [WebDNA] Help with Tables (2008) won't serve .tpl -index.tpl gone, made test.tpl (2000) 2.0 Info (1997)