in reply to Re^10: Broken image link when calling CGI from img tag
in thread Broken image link when calling CGI from img tag

Since I don't see any progress, this will be my last reply in this thread.

You won't achieve anything as long as you don't actually understand what's going on. Which is why JavaFan and I suggested you analyze the HTTP traffic. No response from your part.

You really need to find out what the lower-level reason is for the browser not displaying any image. Is the img tag missing from the generated HTML? Does the browser attempt to load the image? What is returned? Is the content-type header for the image correct? What's the difference between the HTTP streams of the working and non-working setup?

If you don't know how to obtain that information, re-read the thread here, there have been some pointers to tools. Or ask again. But don't simply ignore them.

Since you haven't answered all of those questions, my only remaining advice is "find somebody who fixes it for you". You might need to pay some good money for that, but that's the tradeoff for not getting deep into the issue yourself.

  • Comment on Re^11: Broken image link when calling CGI from img tag

Replies are listed 'Best First'.
Re^12: Broken image link when calling CGI from img tag
by lintunen (Novice) on Aug 10, 2010 at 08:37 UTC

    I apologise if I haven't provided the correct information, I was doing my best to provide information what I thought to be relevant. Everybody thinks about how to solve problems a little differently.

    I in fact did analyse the HTTP traffic (with Fiddler) even before I created this thread but nothing jumped out at me. I may be repeating myself here as some of the questions I have already answered but here goes... No there is nothing wrong with the generated HTML. Yes the browser attempts to load the image. What is returned - if you mean in the browser, a broken image icon until the page is refreshed (if you meant something else, please specify). Content-type is returned as text/html before the refresh but after, it is img/png. If I understand your question about the HTTP stream correctly, output from Firebug indicates there is some kind of timing problem of when the HTML is displayed and the image generation is completed. Additionally, when the image doesn't generate and I view the text output it reports a 502 error: "502 - Web server received an invalid response while acting as a gateway or proxy server" which I guess, suggests a problem with the CGI code.