CGI: triggering a file download & having a page appear

F

Frank Reiff

Hi,

I'm fairly new to fast-cgi/CGI programming and I have a particular
problem:

When people click on a download link, I want the download to start (zip
file) AND an installation page to appear that explains how to use the
downloaded file.

This is easily done in JavaScript: show the installation page and
trigger the download via the Body.onLoad handler, but it would be nicer
to do it all on the server side..

Is there any way of triggering two HTTP responses for one request?

Thanks for your time.

Best regards,

Frank
 
R

Robert Klemme

2007/7/31 said:
Hi,

I'm fairly new to fast-cgi/CGI programming and I have a particular
problem:

When people click on a download link, I want the download to start (zip
file) AND an installation page to appear that explains how to use the
downloaded file.

This is easily done in JavaScript: show the installation page and
trigger the download via the Body.onLoad handler, but it would be nicer
to do it all on the server side..

Is there any way of triggering two HTTP responses for one request?

No. One request, one response. Maybe you can do a multipart response
but I have no experience with that myself.

Kind regards

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top