TheOldWiseKing wrote:
> Hi all,...
> 
> I'm working on creating a web server using C. After running the server, and
> requesting a page from it, the picture inside the page has not been sent.
> the browser didn't display the picture.
> 
> I checked the received HTTP request, and I found the link of the image sent
> in the referer field. but I don't know how to send it from the server to the
> browser.
> 
> can u advice me plz???
> 
> Thank,...
> 
> TheOldWiseKing

Why are you making a web server?  Apache and IIS are the two dominant 
market players and is pretty much a closed market (i.e. the web server 
wars are basically over and there are two winners - there is still a 
battle between the two but no room for anything else).

To answer your question, images are sent in response to a separate HTTP 
request.  You have to include the proper MimeType (e.g. image/gif) in 
your response.

I highly recommend getting ieHTTPHeaders for IE and whatever the 
extension name is for Firefox these days that handles HTTP requests 
(used to be called Live HTTP Headers).  That way you can watch how each 
browser handles sending/receiving each request to/from the server.  See 
what Apache/IIS does and replicate the behavior with your server.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to