Comparison: HTTP with Java, Perl or Python

damien morton morton at
Sat Jun 8 13:41:28 EDT 2002

Ingo Linkweiler <i.linkweiler at> wrote in message news:<3D009911.9000904 at>...
> Hello,
> 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.
> Ingo

Your python code could be a whole lot shorter:

import urllib

More information about the Python-list mailing list