HTTP: Difference between revisions
Content added Content deleted
m (Updated URL.) |
m (Removed comments, updated whitespace, URL.) |
||
Line 1,609: | Line 1,609: | ||
{{libheader|RCurl}} |
{{libheader|RCurl}} |
||
{{libheader|XML}} |
{{libheader|XML}} |
||
First, retrieve the webpage. |
First, retrieve the webpage. |
||
⚫ | |||
⚫ | |||
<lang R> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
#If you are linking to a page that no longer exists and need to follow the redirect, use followlocation=TRUE |
|||
⚫ | |||
#If you are behind a proxy server, you will need to use something like: |
|||
webpage <- getURL("http://rosettacode.org", |
|||
⚫ | |||
#Don't forget that backslashes in your username or password need to be escaped! |
|||
</lang> |
|||
Now parse the html code into a tree and print the html. |
Now parse the html code into a tree and print the html. |
||
⚫ | |||
⚫ | |||
<lang R> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</lang> |
|||
=={{header|Racket}}== |
=={{header|Racket}}== |