header("Content-type: image/png"); makes script run twice?
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: header("Content-type: image/png"); makes script run twice?
(06-22-2011 08:53 PM)Pirata Nervo Wrote:  The script outputs the file once (not in multiple parts so it's limited to PHP's max post size). I'm not sure what you mean by early termination, once the file is sent to the user, the script has done its job.
But when it hasn't sent the file to the user?

(06-22-2011 08:53 PM)Pirata Nervo Wrote:  The first request is the one which has the fields: postcode, did, action and process. The second contains no fields at all thus we get the image for the first one and the MyDownloads index page for the second.
This is not normal behaviour.  A request to a file should be a single request and shouldn't start sending arbitrary additional requests.
Try a different browser.

My gut instinct would be that you have tweaked some Firefox settings or installed plugins to increase speed through parallel downloading or similar, which is causing >1 request to be sent.

My Blog
(This post was last modified: 06-23-2011 10:10 AM by ZiNgA BuRgA.)
06-23-2011 10:07 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: header("Content-type: image/png"); makes script run twice? - ZiNgA BuRgA - 06-23-2011 10:07 AM

 Standard Tools
Forum Jump: