HTTP

From Rosetta Code
Revision as of 23:14, 25 September 2008 by 200.102.26.6 (talk) (New page: {{task|Networking and Web Interaction}} Print a URL's content. =={{header|Perl}}== <perl>using LWP::Simple; print get("http://www.rosettacode.org")</perl> =={{header|Python}}== <pyth...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Task
HTTP
You are encouraged to solve this task according to the task description, using any language you may know.

Print a URL's content.

Perl

<perl>using LWP::Simple; print get("http://www.rosettacode.org")</perl>


Python

<python>import urllib print urllib.urlopen("http://www.rosettacode.org").read()</python>