Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Retreiving Files from the Web (C++)

Retreiving Files from the Web (C++)
Thread Tools
Posting Junkie
Join Date: Jun 2001
Location: Washington DC
Status: Offline
Reply With Quote
Feb 27, 2002, 04:24 PM
 
I just want to be able to grab an html file like you would with an ifstream. Is it possible? How would you do it? What library would I need?

Thanks
     
Forum Regular
Join Date: Jan 2001
Location: Boston, MA
Status: Offline
Reply With Quote
Feb 27, 2002, 06:48 PM
 
Originally posted by nonhuman:
<STRONG>I just want to be able to grab an html file like you would with an ifstream. Is it possible? How would you do it? What library would I need?

Thanks</STRONG>
I think you'd have to get pretty down and dirty, opening sockets and such. There are some open source libraries to do this with (check out curl which is included with Mac OS X 10.1). If you can use the Carbon API, URLAccess gives you an easy way to download files from HTTP or FTP servers.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:12 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2