-->
Page 1 of 1

<img src="file1.gif" > and GET /file1.gif/

PostPosted: Sat Jan 31, 2015 1:53 pm
by picstart
<html>
<head><meta content="text/html; charset=utf-8">
<title>ESP8266</title></head>
<body>
<h1>DK hello world Served from ESP8266 via file hello_world_index.htm</h1>
<br> <img src="file1.gif" >
<br> <img src="file2.gif" >
<br> <img src="file3.gif" >
<br> <img src="file4.gif"">
</body>
</htm>
The example web page above will send multiple GET /filex.gif/ requests and the browser will reserves space for the images
http and its GET's are asynchronous.
The server replies "HTTP/1.1 200 OK\r\nConnection: keep-alive\r\nContent-Type: image/gif \r\n\r\n" binary data for each GET /filex.gif/
How does the browser link the multiple responses to the multiple requests if the requested file name isn't returned with the binary data?
I searched the web but I didn't get an answer.
Update after sniffing packets it appears that the browser assigns an individual socket number to each resource (<img ) request.
I now have to discover a way for the lua code to service several individual sockets.