Re: HTTP "host" header
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 51302
interpreted = N
texte = Okay, so I'm a little slow ... I appreciate your help on this.Actually I just now finally got it working okay, although not quite as you've described.Again thanks,On Tuesday, June 24, 2003, at 12:05 PM, John Peacock wrote:> 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 on>> For 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.>> JohnSigned: Marc Kaiwi-------------------------------------------------------------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:
Okay, so I'm a little slow ... I appreciate your help on this.Actually I just now finally got it working okay, although not quite as you've described.Again thanks,On Tuesday, June 24, 2003, at 12:05 PM, John Peacock wrote:> 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 on>> For 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.>> JohnSigned: Marc Kaiwi-------------------------------------------------------------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/
marc@kaiwi.com (Marc Kaiwi)
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:
Cancel Subscription (1996)
FORMS: Returning a specific page (1997)
WebDNA Intranet Edition public demo (2002)
converting characters in form (1997)
Erotic Sites (1997)
WebCat2b13MacPlugIn - [include] (1997)
Re:Running 2 two WebCatalog.acgi's (1996)
Examples of cross-selling with WebCatalog? (1998)
using cookies to prevent access (2000)
RE: ShowNext Command (1997)
Replace Statement (1997)
writefile and emailer (2002)
Multiple Merchant Accounts? (1997)
Re:FYI: Error message (1996)
Emailer setup (1997)
searchable list archive (1997)
Generating unique SKU from [cart] (1997)
Extra Text Fields (was Another question) (1997)
[isfile] ? (1997)
The evolved Server Configuration Queston (2000)