in reply to Re^3: RUN A FILE FROM HTML
in thread RUN A FILE FROM HTML
#!/usr//bin/perl -w use LWP::UserAgent; use Time::HiRes 'time','sleep'; $ua = LWP::UserAgent->new; $request = new HTTP::Request('GET', "http://www.computerhope.com/file. +com"); $start = time( ); $response = $ua->request($request); $end = time( ); $latency = $end - $start; print length($response->as_string( )), " bytes received in $latency s
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: RUN A FILE FROM HTML
by marto (Cardinal) on May 16, 2012 at 13:02 UTC | |
|
Re^5: RUN A FILE FROM HTML
by Corion (Patriarch) on May 16, 2012 at 12:57 UTC |