3

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

David Planella
  • 15,420
  • 11
  • 77
  • 141
kv1dr
  • 1,381
  • 13
  • 33
  • 2
    stackoverflow is a better site for programming questions. – João Pinto Jan 07 '11 at 17:17
  • Ok, I will ask this question on stackoverflow. – kv1dr Jan 07 '11 at 18:24
  • 1
    There was a discussion about this earlier in [Chat](http://chat.askubuntu.com/rooms/3/conversation/when-should-we-migrate). Conclusion: This is a perfectly acceptable question for AU. As [AU is for Ubuntu Users and Developers](http://askubuntu.com/about). 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](http://meta.askubuntu.com) topic – Marco Ceppi Jan 07 '11 at 18:49

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.

Martin Owens -doctormo-
  • 19,860
  • 4
  • 63
  • 103