How can I get a html code from some site(e.g. www.google.com) using vala(gtk)?
-
2stackoverflow is a better site for programming questions.– João PintoJan 7, 2011 at 17:17
-
Ok, I will ask this question on stackoverflow.– kv1drJan 7, 2011 at 18:24
-
1There was a discussion about this earlier in Chat. Conclusion: This is a perfectly acceptable question for AU. As AU is for Ubuntu Users and Developers. Vala being a language for Gnome which is the default shipped desktop environment it is on topic. You're more than welcome to ask on StackOverflow but don't fret if you fear this is offtopic. If you feel differently please open a meta topic– Marco CeppiJan 7, 2011 at 18:49
Add a comment
|
1 Answer
Use the Vala GIO File open shown here http://live.gnome.org/Vala/GIOSamples
var web_page = File.new_for_uri ("http://live.gnome.org/Vala");
This is the standard method of grabbing files and web pages and you can use the uri syntax for a number of supported protocols such as ssh, ftp, etc.