Re: HTTP "host" header
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 51301
interpreted = N
texte = Marc Kaiwi wrote:> So are you saying that TCPConnect/TCPSend cannot be used in the case of > a virtual host? (unless you know the host's directory, which in most > cases wouldn't be known)No. Read this slowly now. ;~)[text]hostname=www.wrh.noaa.go[/text][tcpconnect host=[hostname]&port=80][!][/!][tcpsend]Host: [hostname][CRLF][!]and so onFor machines using virtual hosts, the HTTP request must contain the "Host:" header. It is harmless to send in all other cases, so [TCPConnect] could just as easily always send that field. It just so happens that [TCPSend] assumes nothing, so you have to manually send "Host:" with your query.John-- 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:
Marc Kaiwi wrote:> So are you saying that TCPConnect/TCPSend cannot be used in the case of > a virtual host? (unless you know the host's directory, which in most > cases wouldn't be known)No. Read this slowly now. ;~)[text]hostname=www.wrh.noaa.go[/text][tcpconnect host=[hostname]&port=80][!][/!][tcpsend]Host: [hostname][CRLF][!]and so onFor machines using virtual hosts, the HTTP request must contain the "Host:" header. It is harmless to send in all other cases, so [tcpconnect] could just as easily always send that field. It just so happens that [tcpsend] assumes nothing, so you have to manually send "Host:" with your query.John-- 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:
quantity minimum problem (1997)
Adding multiple items to Cart (1999)
Misunderstanding?? (1997)
WC2.0 Memory Requirements (1997)
test (1998)
[Way OT] Workstation Security (2002)
[SearchString] problem with [search] context (1997)
looping table rows (1999)
Use of & in text areas.... (1998)
The force has left me. (2002)
WebCatalog Upgrade Pricing? (1997)
Encrypting Credit Card Numbers (2004)
Cart Numbers (1997)
Show new (2003)
Urgent WebCatalog problem (2000)
BadSuffix with 2.1b3 cgi (1997)
Database Path (1998)
Newbie HW/SW Setup Question (2000)
[Sum] function? (1997)
[WebDNA] WebDNA and Coda 2 - Get it up and running... (macOS) (2018)