We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Connecting to the Internet
Page Index Toggle Pages: 1
Connecting to the Internet (Read 278 times)
Connecting to the Internet
Feb 8th, 2009, 2:56am
 
What is the easiest way to get the source code of a web page into a string?
Re: Connecting to the Internet
Reply #1 - Feb 8th, 2009, 7:10am
 
I think this would get you started.
http://www.texone.org/prohtml/
Re: Connecting to the Internet
Reply #2 - Feb 8th, 2009, 12:30pm
 
To get it as a string, then simply: string page=loadStrings("http://www.google.com");
Page Index Toggle Pages: 1