3

How can I get a html code from some site(e.g. www.google.com) using vala(gtk)?

kv1dr
  • 1,381

1 Answers1

5

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.