<div dir="ltr">Hi,
<div><br></div><div>I've written a simple bash script to upload a file from a remote server as a CGI script (yes, I know, I should use another language, but it's just a proof-of-concept).</div><div><br></div><div>
It goes like this: A simple HTML page gives the user a text line to enter a URL and "upload" button, which submits the data using POST to a bash script (I use the proccgi for transferring the values).</div><div>
<br></div><div>The scripts fetches the URL and launches wget to grab the file, rename it and move it to a specific directory.</div><div><br></div><div>So far, so good. The script works well.</div><div><br></div><div>But I have one issue with it: those files are pretty big (1-3 GB) and wget doesn't show anything while it uploads - in the web browser. I tried using some redirect tricks, but it still doesn't show anything on the screen. I can redirect the output to a text file and show it after the upload, but it defeats the purpose of showing some activity.</div>
<div><br></div><div>So my question: how can I make WGET (or CURL) show anything on my browser while it downloads the file (uploading it to the server)?</div><div><br></div><div>Thanks,</div><div>Hetz</div></div>