in reply to CGI and image
That's not how HTTP works.
Your HTML and the image it references are two separate HTTP requests. Your script tries to answer both requests in one response. This approach will not work.
You need to wait for the image request and then send the image data. If you want/need to carry information from the page request to the image request, either use a cookie or pass the information in the image URL as a CGI parameter.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI and image
by kschwab (Vicar) on Dec 13, 2016 at 17:39 UTC | |
by afoken (Chancellor) on Dec 16, 2016 at 20:17 UTC | |
by kschwab (Vicar) on Dec 17, 2016 at 15:04 UTC |