3

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

3
  • 2
    stackoverflow is a better site for programming questions. Jan 7, 2011 at 17:17
  • Ok, I will ask this question on stackoverflow.
    – kv1dr
    Jan 7, 2011 at 18:24
  • 1
    There 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 Jan 7, 2011 at 18:49

1 Answer 1

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.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .