<div dir="ltr">Hi,<br><br><div class="gmail_quote">On Wed, Dec 14, 2011 at 9:25 AM, Moish <span dir="ltr"><<a href="mailto:moish@mln.co.il">moish@mln.co.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
wget2web<br>
<br></blockquote><div><br></div><div>Link?</div><div><br></div><div>Hetz</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 14/12/2011 03:32, Amos Shapira wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2011/12/14 David Ronkin <<a href="mailto:dronkin@gmail.com" target="_blank">dronkin@gmail.com</a> <mailto:<a href="mailto:dronkin@gmail.com" target="_blank">dronkin@gmail.com</a>>><br>
<br>
Call it asynchronously with ajax or jquery get/post - while waiting<br>
for response you can print whatever you what.<br>
<br>
<br>
I second that - that's, for instance, how Google's auto-completion (of<br>
addresses in gmail, search terms in search etc) works - it sets a<br>
background JavaScript thread which runs every second in the background,<br>
reads the input field's value and submit it to the server for process if<br>
it changed (and pulls the results, of course). You can skip the "check<br>
input field value" part in your case. There must be some JavaScript<br>
libraries which can already help you there (<a href="http://jquery.com/" target="_blank">http://jquery.com/</a> is the<br>
first suspect, but there must be many more lying around).<br>
<br>
Two less related points:<br>
<br>
1. Make sure you verify the URL for any hockery-pockery (e.g. that it's<br>
a genuine legitimate "http(s)://" URL and not, for instance<br>
"file:///etc/passwd" or trying to break out of the shell parameter<br>
quoting to inject its own shell commands or encoded javascript that can<br>
be used for cross-site-scripting :)<br>
<br>
2. While I'm looking for work, I might be available for such small jobs<br>
(I'm not a JavaScript Guru, more of a server-side guy, but should be<br>
able to do something like this with some research).<br>
<br>
--Amos<br>
<br>
<br>
David<br>
<br>
--<br>
בברכה,<br>
דוד רונקין<br>
נא בקרו בבלוג שלי: <a href="http://dronkin.blogspot.com" target="_blank">http://dronkin.blogspot.com</a><br>
<<a href="http://dronkin.blogspot.com/" target="_blank">http://dronkin.blogspot.com/</a>><br>
<br>
<br>
2011/12/13 Hetz Ben Hamo <<a href="mailto:hetzbh@gmail.com" target="_blank">hetzbh@gmail.com</a> <mailto:<a href="mailto:hetzbh@gmail.com" target="_blank">hetzbh@gmail.com</a>>><br>
<br>
Hi,<br>
<br>
I've written a simple bash script to upload a file from a remote<br>
server as a CGI script (yes, I know, I should use another<br>
language, but it's just a proof-of-concept).<br>
<br>
It goes like this: A simple HTML page gives the user a text line<br>
to enter a URL and "upload" button, which submits the data using<br>
POST to a bash script (I use the proccgi for transferring the<br>
values).<br>
<br>
The scripts fetches the URL and launches wget to grab the file,<br>
rename it and move it to a specific directory.<br>
<br>
So far, so good. The script works well.<br>
<br>
But I have one issue with it: those files are pretty big (1-3<br>
GB) and wget doesn't show anything while it uploads - in the web<br>
browser. I tried using some redirect tricks, but it still<br>
doesn't show anything on the screen. I can redirect the output<br>
to a text file and show it after the upload, but it defeats the<br>
purpose of showing some activity.<br>
<br>
So my question: how can I make WGET (or CURL) show anything on<br>
my browser while it downloads the file (uploading it to the server)?<br>
<br>
Thanks,<br>
Hetz<br>
<br>
______________________________<u></u>_________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a> <mailto:<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><u></u>><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/<u></u>mailman/listinfo/linux-il</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a> <mailto:<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><u></u>><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/<u></u>mailman/listinfo/linux-il</a><br>
<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
--<br>
View my profile on LinkedIn <<a href="http://www.linkedin.com/in/gliderflyer" target="_blank">http://www.linkedin.com/in/<u></u>gliderflyer</a>><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/<u></u>mailman/listinfo/linux-il</a><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Moish<br>
<br>
<br>
______________________________<u></u>_________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/<u></u>mailman/listinfo/linux-il</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="rtl"><div style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;margin-top:8px;margin-right:8px;margin-bottom:8px;margin-left:8px;background-color:rgb(255,255,255)">
<p dir="rtl"><strong style="font-size:10px"><span style="font-size:small"><span style="color:rgb(0,0,128)"><span style="color:rgb(0,0,0);font-weight:normal">חץ בן חמו</span><br>ח</span><span style="color:rgb(0,0,255)">ץ</span>-<span style="color:rgb(0,0,128)">ב</span><span style="color:rgb(0,0,255)">י</span><span style="color:rgb(51,102,255)">ז</span><br>
</span></strong>השכרה ואירוח של שרתים פיזיים<br>מעוניין להשתמש בשרותים שחסומים לגולש הישראלי? Hulu? NetFlix? Pandora? Google Voice? אם כן, היכנס <a href="http://vps.net.bz/?p=406" target="_blank">לכאן</a>.</p></div></div>
<br>
</div>