in reply to Re: Cgi params as binary data
in thread Cgi params as binary data

also, you need to call the new method twice.

you don't need to do it in a loop

Replies are listed 'Best First'.
Re^3: Cgi params as binary data
by atey1 (Initiate) on Jun 05, 2011 at 12:46 UTC

    alright, I'm being unclear. I'll try to be simple

    1. user uploads zip in a form

    2. on form submit (action=site.cgi) zip is processed using some external program

    3. the output of the external program can be either a zip or HTML (raw output, not a file)

    4. if I just do "print $my_program_output", the html output will reload/replace the page, but the zip will just present a zip file for download without reloading the page behind it (this works fine, without having to write the output to a file)

    here's my problem: In the case of the zip file, I want to refresh the original page (or have access to its content with javascript), but I don't know how to do that. And I want to avoid having to open a new file and write to it.

      here's my problem: In the case of the zip file, I want to refresh the original page (or have access to its content with javascript), but I don't know how to do that. And I want to avoid having to open a new file and write to it.

      Can you explain that in terms of HTTP?