Say I have this file:
http://www.example.com/somepic.png
Is there a cross platform C or C++ library that could easily allow me to download it to a specified directory?
Thanks
You can use libcurl to do this.
Besides itself, the GNU libmicrohttpd Web site lists several alternatives.
Related
Is there any C++ Library that can download data from internet when we provide a URL? I am currently learning C++ and wish to start from making use of such library in my application. Please help.
Thanks
Yes, libcurl.
Do i need external libraries ?
is there any minimalistic example ?
The easiest way is to use the C API which is usually installed along with the MySQL Server. On Windows, for example, it's in "C:\Program Files\MySQL\MySQL Server 5.0" (see "include" and "lib" directory).
If you are looking for examples that demonstrate how to use the C API, take a look at these clients. You can find these in the client directory in the MySQL source distribution.
The client API is called mysqlclient, you can find the documentation here.
But you can also use other libraries like the C++ wrapper on sourceforge. Or an ODBC abstraction like contained in cross-platform toolkits (e.g. wxDb in wxWidgets).
i am working on php...!!
Is it possible to link HTML page to c++/c at back end.
means instead of php script i want to run c/c++
if Yes How??
Check CGI and FastCGI technologies.
CGI is your best bet if the C++ program is an executable. If you want to use a C++ library from PHP you will need to write an extension. An example of this can be found at http://devzone.zend.com/article/4486
What you are after is CGI.
I recommend the book Extending and Embedding PHP by Sara Goleman link
It is probably the best resource I have found on linking C++ libraries / routines to user space PHP functions.
Hey, Can you recommend me what C++ library or classes are available for sending email via SMTP in C++. I'm on Windows platform. I need a library which supports attachments and SSL connections. What are the options available. I'm not into implementing my own :)
Regards
EDIT: Oh I forgot to mention I'm using Visual C++ 6
I found a project that might be what you're looking for: lib smtp.
I've had good luck with the ATL class CSMTPConnection, but I don't think it supports SSL.
Try Ultimate-TCP/IP, free on Code Project - it includes support for SMTP and you can just compile in the parts you want. It's very good.
You don't need any library. (never on Windows)
Just use Winsock or COM
I am running a Qt 4.5 commercial snapshot and want to use a plugin that I downloaded (it's a .so file) in my QWebView. Is there a specific location where I need to place this file? Can I grab it using the QWebPluginFactory?
I am assuming the plugin here is the NPAPI plugin (e.g. Flash). Under X11, QtWebKit search several common directories for the plugin. For the complete list, see the documentation on Netscape plugin support.
In addition to that, you must enable plugin support via QWebSettings::. See the documentation for WebAttribute::::PluginsEnabled, either globally or for your particular QWebView only.
If you're a commercial client you should be demanding your money earned support directly from the trolltech(nokia) guys.
Have you tried putting in the standard library directories? It should be picked up by the linker if it's in one of those directories.
For example:
/lib/
/usr/lib/
/usr/share/lib/
/usr/local/lib/
Have you tried looking around in /usr/lib/qt4/plugins/ or somewhere similar yet? I suppose that path will probably be where you have your 4.5 snapshot stuff compiled, but it should have options for putting in plugins for various things.