Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
2  
stackoverflow is a better site for programming questions. –  João Pinto Jan 7 '11 at 17:17
    
Ok, I will ask this question on stackoverflow. –  kv1dr Jan 7 '11 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 –  Marco Ceppi Jan 7 '11 at 18:49
add comment

1 Answer

up vote 5 down vote accepted

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.

share|improve this answer
    
Thank you for code and for link. It works like a charm. –  kv1dr Jan 7 '11 at 18:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.