downloading a text file...

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
TuxUser
Knows some wx things
Knows some wx things
Posts: 26
Joined: Fri Jul 25, 2008 9:55 am

downloading a text file...

Post by TuxUser » Wed Mar 04, 2009 5:39 pm

How to use wxwidgets to download a text file from the web????

computerquip
Experienced Solver
Experienced Solver
Posts: 72
Joined: Fri Feb 20, 2009 7:13 pm
Location: $(#wx)\src

Post by computerquip » Wed Mar 04, 2009 8:47 pm

Code: Select all

wxURL or wxHTTP
HTTP and URL should both have the ability to grab a .txt online. I have never used either of them YET and as a result, I cannot be 100% sure on my own fact but please read the documentation and be sure. There is an example inside of wxURL.

TuxUser
Knows some wx things
Knows some wx things
Posts: 26
Joined: Fri Jul 25, 2008 9:55 am

Post by TuxUser » Wed Mar 04, 2009 10:07 pm

thanks,
I tried the example of the wxURL , but appearntly , it always gives me segfault on the part of the GetInputStream().....

User avatar
doublemax
Moderator
Moderator
Posts: 15690
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Post by doublemax » Wed Mar 04, 2009 10:24 pm

did you try the search function? There are several code snippets for that:
http://forums.wxwidgets.org/viewtopic.php?p=75852#75852
Use the source, Luke!

Post Reply