(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.