Does anyone have some sample code showing how to POST to a URL using wxWidgets? The documentation and discussion forums imply that it's possible but the methods in wxHTTP are very low-level compared to what you find in .NET and scripting languages like Perl and Ruby. Do I actually have to create the HTTP request myself and send it to the server via the SocketOutputStream? Am I missing something?
I came across a similar problem initially and ended up using Curl instead as it's also cross platform and is very easy to use.
Tim
Atually, same here. Tried using wxHTTP and ended up using Curl. And Curl is a charm to work with...
J-O
Related
Please, can you give me simple example how to do GET requests with gtkmm.
I already tried to find answer in official documentation, but it didn`t help me.
I think i need to use libsoup or Webkit, but I don't know how to start.
You need to use some C++ network library. Look into curl or curlpp, you can even use WinSOCK if you are on Windows.
I am pretty new to the coding world and django, I am pretty far along within a site and I would like to add a forum function
does anyone have suggestions, I am currently using 1.8.2
I was able to get spirit working on its own, but could not figure out how to integrate it. I also tried djangobb, but the same as spirit.
any help would be great
You should check Pybbm. It is fully documented and easy to customize.
I need to make web-based API calls, using POST. This is very easily achievable via libcurl, but in my case - it is only working via IE API due to special requirements.
I found winapi function URLOpenStream which is working fine, but I did not found way, to use this function with POST data.
Is there are any way to do so? Or use other function, but it should be strictly IE API based.
You can try using WinINET's (wininet.dll) HttpOpenRequest function instead:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa384233(v=vs.85).aspx
I'm not sure what version of C++ you are using but I found a code example here in CodeProject:
http://www.codeproject.com/Questions/816567/How-do-I-post-data-using-HttpSendRequest-to-a-loca
I've found "Msxml2.XMLHTTP.6.0" component, which suits me best, JFYI anyone, who will find this question :)
I need to download files/read strings from a specified url in C++. I've done some research with this, cURL seems to be the most popular method. Also, I've used it before in PHP. The problem with cURL is that the lib is huge, and my file has to be small. I think you can do it with winsock, but I can't find any simple examples. If you have a simple winsock example, a light cURL/Something else, or anything that could get the job done. I would greatly appreciated. Also, I need this to work with native C++.
I can repeat me answer Is it possible to handle proxies at socket level? (see also comments) about two important interfaces Windows Internet (WinINet) API and Windows HTTP Services (WinHTTP). An important restriction of WinINet is that WinINet should be not used in a service (only in GUI app.) because of possible dialogs.
you should try WinInet: this library is part of Windows operating system, and allows to download a resource identified by an URL, using either HTTP or FTP.
if you are using HTTP, you might find the InternetOpenUrl() function useful.
I have read about Thrift while trying to find out how to use Google Protocol Buffers. I have been searching for some reference that shows how to go about using it with a simple working example for C++. It's been frustrating not being able to find any such site. It is a bit surprising that almost all the examples use Java, a language that has cross-platform RMI already at its disposal. May be I have missed something in searching, and I would very much appreciate if anyone can give a reference to a tutorial with a working example, however small.
TIA,
-Sviya
I've never used Thrift, but Googling for "thrift" brought me to this page - http://incubator.apache.org/thrift/ - which has a C++ example at the bottom of the page.
The thrift wiki has this page - http://wiki.apache.org/thrift/ThriftUsageC%2B%2B - which has more info on using it with C++
Also,
once when you install thrift in folder tutorial you have example of thrift file,
server&client implementations in different languages and README file.
This is good place to start!
Because there were no tutorial on the web, I created one in my blog.
You can check my full tutorial about Thrift in: My Blog
Since it's too long, I cannot post my answer here. But I think my blog is a good resource for anyone who wants to get started with Thrift.