Re: [twsocket] THttpCli: default webpage name

2008-05-08 Thread DZ-Jay

On May 7, 2008, at 03:17, Tobias Rapp wrote:


 Well in the case where the server performs a redirection it might be
 possible, e.g.
 http://en.wikipedia.org/wiki/ - http://en.wikipedia.org/wiki/Main_Page

 /Tobias

Yes, if the server returns a 302 status code in the response, then the 
payload will contain the document.  But most HTTP servers out there 
have a default document feature, which will search for and respond 
with a specific document specified by the administrator (Apache uses 
index.html by default; IIS, default.htm) when no filename is given. 
  In such cases, the server does not divulge the filename.

dZ.

-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli: default webpage name

2008-05-07 Thread Tobias Rapp
DZ-Jay wrote:
 [EMAIL PROTECTED] wrote:
 If THttpCli is used to get a webpage with no document name specified,
 only directory (www.codegear.com/products) - is it possible to find out
 the default document name? Whether it be index.html or main.html or
 just some custom name specified on the webserver?
 
 This is a feature of the HTTP server:  When a document is not specified, 
 it decides which is the default resource.  There is no way for the 
 client to discover this.

Well in the case where the server performs a redirection it might be 
possible, e.g.
http://en.wikipedia.org/wiki/ - http://en.wikipedia.org/wiki/Main_Page

/Tobias
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] THttpCli: default webpage name

2008-05-06 Thread DZ-Jay
[EMAIL PROTECTED] wrote:
 If THttpCli is used to get a webpage with no document name specified,
 only directory (www.codegear.com/products) - is it possible to find out
 the default document name? Whether it be index.html or main.html or
 just some custom name specified on the webserver?
 

This is a feature of the HTTP server:  When a document is not specified, 
it decides which is the default resource.  There is no way for the 
client to discover this.

dZ.


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be