Comparison: HTTP with Java, Perl or Python

Cameron Laird claird at
Fri Jun 7 21:07:00 CEST 2002

In article <3D009911.9000904 at>,
Ingo Linkweiler  <i.linkweiler at> wrote:
>for a comparison of languages I need a complete "translation" of this short skript into Perl, Tcl and Java:
> myurl = ""
> import urllib
> file  = urllib.urlopen(myurl)
> text  =
> file.close()
> print text
>Can you send me some solutions?
>The skripts must be able to run, please do not post "partial" solutions.
  set myurl
  package require http
  set token [::http::geturl $myurl]
  set text [::http::data $token]
  ::http::cleanup $token
  puts $text
Do you already have Perl and Java covered?

Cameron Laird <Cameron at>

More information about the Python-list mailing list