|
From: angel d. <sci...@ho...> - 2007-09-27 17:16:16
|
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 Clie= nt is only REQUESTING for 1. I use recv() function to see what the HTTP Client is Requesting for and i g= et: GET /image.gif HTTP/1.1 Host: 10.143.23.160 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gec= ko/20070725 Firefox/2.0.0.6 Accept: image/png,*/*;q=3D0.5 Accept-Language: en-us,en;q=3D0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://10.143.23.160/JavaHtml.html GET /JavaHtml.html HTTP/1.1 Host: 10.143.23.160 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gec= ko/20070725 Firefox/2.0.0.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=3D0.9,te= xt/plain;q=3D0.8,image/png,*/*;q=3D0.5 Accept-Language: en-us,en;q=3D0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7 Keep-Alive: 300 Connection: keep-alive and i don't see GET /image2.gif HTTP/1.1 This means that the HTTP Client is only requesting for the .html file and o= nly one image. What can i do so that the HTTP client request whatever items i am sending? _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=3D7+wonders+world&mkt=3Den-US&form=3DQ= BRE= |
|
From: angel d. <sci...@ho...> - 2007-09-27 23:36:38
|
From: sci...@ho...: dev...@li...= Subject: 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 s= ends 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 a= nd 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=3D0.5Accept-Language: en-us,en;q=3D0.5Accept-Enc= oding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7Keep-A= live: 300Connection: keep-aliveReferer: http://10.143.23.160/JavaHtml.htmlG= ET /JavaHtml.html HTTP/1.1Host: 10.143.23.160User-Agent: Mozilla/5.0 (Windo= ws; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6Acc= ept: text/xml,application/xml,application/xhtml+xml,text/html;q=3D0.9,text/= plain;q=3D0.8,image/png,*/*;q=3D0.5Accept-Language: en-us,en;q=3D0.5Accept-= Encoding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7Kee= p-Alive: 300Connection: keep-aliveand i don't see GET /image2.gif HTTP/1.1T= his means that the HTTP Client is only requesting for the .html file and on= ly 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!=20 _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx= |
|
From: Per W. <pw...@ia...> - 2007-09-28 00:08:05
|
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....n= etSubject: 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 REQUESTIN= G 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=3D0.5Accept-Language: en-us,en;q=3D0.5Accept-E= ncoding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7Keep= -Alive: 300Connection: keep-aliveReferer: http://10.143.23.160/JavaHtml.htm= lGET /JavaHtml.html HTTP/1.1Host: 10.143.23.160User-Agent: Mozilla/5.0 (Win= dows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6A= ccept: text/xml,application/xml,application/xhtml+xml,text/html;q=3D0.9,tex= t/plain;q=3D0.8,image/png,*/*;q=3D0.5Accept-Language: en-us,en;q=3D0.5Accep= t-Encoding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7K= eep-Alive: 300Connection: keep-aliveand 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 |
|
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 |