cURL class

Discuss any 3rd-party tools and code that may be of interest to other Juce users

cURL class

Postby atom » Tue Mar 10, 2009 5:26 pm

a small class that wraps CURL to fetch network data, with the ability to stop the transfer, have a callback for writing data, and having some sort of progress indication, also anything else that CURL supports (like proxy, and http tunneling) can be set.

it's very simple for now, i'm just using it for my audio player to play remote streams (work in progress), and i had to have some control over the network. this opens up a nice possibility ti implement other protocols, and the whole SOCKET layer with support for proxying and tunneling.

http://atom.maczo.pl/juce/mineField.7z (source and VS2008 project)
http://atom.maczo.pl/juce/mineField.exe (release EXE demo, just type some URL and press fetch)

curl is embedded in the projest no SSL support you need to get that inside yourself, LIBZ will be supported if zlib.h is somewhere in your include path (useful for getting mod_gzipped and mod_deflated urls).

it works just like anything in juce, you just need to have a cURLListener and set some options.
User avatar
atom
JUCE UberWeenie
 
Posts: 1115
Joined: Thu Feb 15, 2007 11:36 am

Postby vishvesh » Mon Apr 06, 2009 11:32 am

I used cUrl to create a dll which allows for downloading and also uploading files and the best part of it all is it's freely available.

I didn't use juce, in the dll it was plain c++ dll with virtual methods for call backs.

Curl is really powerful.
Best Regards,
Vishvesh
User avatar
vishvesh
JUCE UberWeenie
 
Posts: 504
Joined: Fri Aug 01, 2008 10:16 am
Location: Bangalore, India.


Return to Useful Tools and Components

Who is online

Users browsing this forum: No registered users and 1 guest

cron