|
From: angel d. <sci...@ho...> - 2007-10-01 00:54:25
|
Have anybody build a server using winsock2 and C++? =20 YES? Have you use port 80 to send html data? =20 YES? What did you used when the HTML code that you send to the browser had more = than 1 pictured? =20 What did you do when the browser tried to connect to http://youripaddress/i= mage.gif ????? =20 ...........................................................................= ... =20 I tried to solve this problem doing this: =20 I waited for the browser to ask for the image: =20 GET /image.gif HTTP/1.1 =20 Then i send it, and it work... =20 BUT.... =20 Sometimes the browser just request for only 1 image, and the rest of the im= ages, the browser tries to download them, using the path http://youripaddress/ =20 I still can't figure out how browsers can download some data from servers w= ithout sending any request..... =20 Is there a way, USING WINSOCK2, to let the browser know that http://youripa= ddress/ is just, C:\Dev-Cpp\images\? =20 A source code will help better than a plain answer. =20 _________________________________________________________________ Connect to the next generation of MSN Messenger=A0 http://imagine-msn.com/messenger/launch80/default.aspx?locale=3Den-us&sourc= e=3Dwlmailtagline= |