Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Sep : Browser image requests - no path info in GET
| Subject: | Browser image requests - no path info in GET |
| Posted by: | tonymeado..@adelphia.net |
| Date: | 29 Sep 2006 10:37:00 |
In response to a POST request (providing values) my INDY server
returns an HTML file with sendfile(). That file arrives fine,
but the followup image requests made by the browser are
always filename only, no path, so they are not grabbed.
For example, this call:
s := Format( 'Serving file %s (%d bytes) to %s:%d',
[
'\root\genfiles\temp\777\report67.htm',
ByteSent,
AThread.Connection.socket.Binding.PeerIP,
AThread.Connection.socket.Binding.PeerPort]);
Generates the following image call by the browser is:
GET \headerlogo.jpg
What I would like to get from the browser is obvious:
GET \root\genfiles\temp\777\headerlogo.jpg
The image(s) are located down in the 777 directory, not in the root.
How can I have GET image references use either,
the same directory stem as the original htm file
Possibly by setting values in requestinfo or responseinfo??
I bet this is an obvious one to most of you INDY fans,
thanks,
tonyM
removeme_tonymeador@adelphia.net