|
From: Jonathan W. <jon...@gm...> - 2007-09-28 07:24:18
|
I second Per: the browser will only ask for what it wants, and you cannot sent it anything else, the point of the server being to _serve_ the browser the data it requests. For instance if you bere using a text-based browser, it would never ask for any images. In this case I guess you're using IE or Mozilla Firefox or some other normal browser. You should check the source the browser is seeing and check for any errors there (esp. whether the iamge2 tag is correct) Per:> Note that there are situations ... Hey that's smart ! and cool :D Jonathan On 9/28/07, Per Westermark <pw...@ia...> wrote: > > You have an apple that doesn't taste good. You ask what you should do > about your tongue to make the apple taste good. > > You can obviously not do anything in the server to get a client to request > things it isn't interested in. > > If the client supports keep-alive, it may request more items using the > same connection - but only if the client wants to. > > Note that there are situations when a server may send out an animaged gif > in an "infinite" number of blocks, to get the client to animate some form > of job progress of something performed in the server. > > /pwm > > On Thu, 27 Sep 2007, angel dario wrote: > > > > > > > > > From: sci...@ho...: > dev...@li...: RequestDate: Thu, 27 Sep 2007 > 11:16:06 -0600 > > > > > > > > Hi...I'm facing a little problem with a HTTP Request.I have a server > that sends out 2 images to a HTTP Client, but the HTTP Client is only > REQUESTING for 1.I use recv() function to see what the HTTP Client is > Requesting for and i get:GET /image.gif HTTP/1.1Host: > 10.143.23.160User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; > rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6Accept: image/png,*/*;q= > 0.5Accept-Language: en-us,en;q=0.5Accept-Encoding: > gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7Keep-Alive: > 300Connection: keep-aliveReferer: http://10.143.23.160/JavaHtml.htmlGET/JavaHtml.html HTTP/1.1Host: > 10.143.23.160User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; > rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6Accept: > text/xml,application/xml,application/xhtml+xml,text/html;q=0.9 > ,text/plain;q=0.8,image/png,*/*;q=0.5Accept-Language: en-us,en;q= > 0.5Accept-Encoding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=0.7 > ,*;q=0.7Keep-Alive: 300Connection: keep-aliv > eand i don't see GET /image2.gif HTTP/1.1This means that the HTTP Client > is only requesting for the .html file and only one image.What can i do so > that the HTTP client request whatever items i am sending? > > > > Explore the seven wonders of the world Learn more! > > _________________________________________________________________ > > News, entertainment and everything you care about at Live.com. Get it > now! > > http://www.live.com/getstarted.aspx > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > -- <Morpheus> linux, c'est une question de VI ou de MORE |