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.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 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:
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.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 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:
Cart questions (1997)
Wanted: Broader string manipulation functions (1997)
problem serving foreign languages text (1997)
Authenticate (1997)
search question (2001)
WebCatalog f2 Installation (1997)
default value from Lookup (was Grant, please help me) (1997)
WebCatalog 2.0.1 NT beta 1 released (1997)
Carts in Admin folder? (1999)
international time (1997)
Separate SSL Server (1997)
PCS Customer submissions ? (1997)
WebCatalog for Postcards ? (1997)
Template cache problem with WC4 on Mac OS X (2000)
Need help... (1997)
no template caching (1997)
Bulletin Board.... (2000)
Refering page (1998)
append=T problem (1998)
A multi-processor savvy WebCatalog? (1997)