Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » downloading file help
downloading file help [message #16820] Mon, 14 July 2008 22:00 Go to next message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

hello all

please how can i download file from a link or put it in a string variable
thx in advance
Re: downloading file help [message #16821 is a reply to message #16820] Mon, 14 July 2008 22:34 Go to previous messageGo to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
I suppose you download it over http...
Here is a small snippet from httpcli example which store the server response in a string. If the url is pointing to your file, then the content of file will be stored in content variable.
HttpClient client;
client.URL(url);
String content = client.ExecuteRedirect();

Saving data to file is simple as SaveFile("/path/", content);


cdabbd745f1234c2751ee1f932d1dd75
Re: downloading file help [message #16822 is a reply to message #16821] Mon, 14 July 2008 22:58 Go to previous message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

thanks alot
Previous Topic: About U++ plugin/port of Webkit
Next Topic: downloading file progress bar
Goto Forum:
  


Current Time: Sat Feb 23 08:04:08 CET 2019

Total time taken to generate the page: 0.00616 seconds