Comparison: HTTP with Java, Perl or Python

Cameron Laird claird at starbase.neosoft.com
Fri Jun 7 15:07:00 EDT 2002


In article <3D009911.9000904 at gmx.de>,
Ingo Linkweiler  <i.linkweiler at gmx.de> wrote:
>Hello,
>
>for a comparison of languages I need a complete "translation" of this short skript into Perl, Tcl and Java:
>
> myurl = "http://www.uni-dortmund.de"
> import urllib
> file  = urllib.urlopen(myurl)
> text  = file.read()
> 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 http://www.uni-dortmund.de
  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 Lairds.com>
Business:  http://www.Phaseit.net
Personal:  http://starbase.neosoft.com/~claird/home.html



More information about the Python-list mailing list