HTTP: Difference between revisions
Content added Content deleted
(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...) |
No edit summary |
||
Line 1: | Line 1: | ||
{{task|Networking and Web Interaction |
{{task|Programming environment operations}}[[Category:Networking and Web Interaction]] |
||
Print a URL's content. |
Print a URL's content. |
||
Line 7: | Line 7: | ||
<perl>using LWP::Simple; |
<perl>using LWP::Simple; |
||
print get("http://www.rosettacode.org")</perl> |
print get("http://www.rosettacode.org")</perl> |
||
=={{header|Python}}== |
=={{header|Python}}== |
Revision as of 23:17, 25 September 2008
HTTP
You are encouraged to solve this task according to the task description, using any language you may know.
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>