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:
Template not found error messages (1997)
Nested Loops and SHOWIFs (1997)
Uploading out of FMP (2001)
Upgrading old WebCat Database Files (1997)
Protect vs Authenicate (1997)
[URL] and [showif] or [hideif] comparisons (2003)
Looping Search Results - Duh! (2000)
expansion domain freak out (2003)
is there a [purchase]? (1998)
forming a SKU (1999)
$Quit, $CloseDatabase corrections (1997)
[WebDNA] Emails per hour, [sendmail] BCC's (2010)
$Replace with [founditems] (1997)
Tax & Shipping (1997)
For those of you not on the WebCatalog Beta... (1997)
Null Characters (2005)
RE: Credit card processing - UK (1997)
WebCatalog for dummies p2.2 (2000)
no global [username] or [password] displayed ... (1997)
Navigator Parsing (1997)