libcurl

Libcurl Certificate Pinning working on iPhone but not on Android

倾然丶 夕夏残阳落幕 提交于 2019-12-23 07:28:25
问题 This is my C++ code that I am using in Obj-C and JAVA projects. string readBuffer; string certificateBeingUsed; CURL *curl = curl_easy_init(); curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(curl, CURLOPT_URL, "https://apiServer"); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 120); curl_easy_setopt(curl, CURLOPT_ENCODING, GZIP); curl_easy_setopt(curl,

Libcurl Certificate Pinning working on iPhone but not on Android

懵懂的女人 提交于 2019-12-23 07:28:12
问题 This is my C++ code that I am using in Obj-C and JAVA projects. string readBuffer; string certificateBeingUsed; CURL *curl = curl_easy_init(); curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(curl, CURLOPT_URL, "https://apiServer"); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 120); curl_easy_setopt(curl, CURLOPT_ENCODING, GZIP); curl_easy_setopt(curl,

In Xcode, how do I link a dynamic library (libcurl) so that the app also works on older versions of the Mac OS?

牧云@^-^@ 提交于 2019-12-23 07:15:32
问题 I am using libcurl in a Mac project built and compiled on OS 10.7 Lion. I can link to the dynamic library just fine, using either the -lcurl option in Other Linker Flags or by adding the library to my project. Everything works as its supposed to. I'd like the application to work on OS 10.6 and 10.5 as well. I set the deployment target accordingly. When I go to run the application in one of those versions of the OS, I get a dyld error: Library not loaded: /usr/lib/libcurl.4.dylib Reason:

In Xcode, how do I link a dynamic library (libcurl) so that the app also works on older versions of the Mac OS?

女生的网名这么多〃 提交于 2019-12-23 07:14:29
问题 I am using libcurl in a Mac project built and compiled on OS 10.7 Lion. I can link to the dynamic library just fine, using either the -lcurl option in Other Linker Flags or by adding the library to my project. Everything works as its supposed to. I'd like the application to work on OS 10.6 and 10.5 as well. I set the deployment target accordingly. When I go to run the application in one of those versions of the OS, I get a dyld error: Library not loaded: /usr/lib/libcurl.4.dylib Reason:

iOS App rejected non public api (SSL related) on cocos2d-x and libCurl [closed]

你。 提交于 2019-12-23 06:20:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I just submitted for review and app built on top of cocos2d-x (C++) and libcurl. I m using libcurl with SSL support in order to download profile pictures from Facebook When I validate my app from organiser or trying to distribute I get the following error: Your app contains non public API usage . please reviex

<stdlib.h> not found in MinGW when MinGw include directory is added to search path

江枫思渺然 提交于 2019-12-23 06:15:27
问题 I'm getting the error c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:75:25: fatal error: stdlib.h: No such file or directory #include_next <stdlib.h> when adding C:\MinGW\include to the compiler include search path: echo "#include <cstdlib>" | g++ -x c++ - -isystem C:/MinGW/include -o /dev/nul But CMake does this because some libraries (libcurl e.g.) are installed into C:\MinGW hence the curl include dir is C:\MinGW\include Am I doing something wrong or is this a bug in MinGW? I'm using

Login to WS1 using curl

依然范特西╮ 提交于 2019-12-23 05:06:23
问题 I'm trying to login into ws1.com using curl, however whenever i put the POST to true I'm getting error: Bad Request, this is the code that i tried: <?php $LOGINURL = "https://secure2.ws1.com/login"; $agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$LOGINURL); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

Simulating a POST with PHP & cURL

风流意气都作罢 提交于 2019-12-23 03:53:09
问题 I'm trying to simulate a POST to a website based on what I see coming from Live HTTP headers in Firefox. Here's a copy/paste of the log from the Firefox plugin: POST /context?tab=login HTTP/1.1 Host: website User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13 Accept: text/html,application/xhtml+xml,application/xml;q=0.9, / ;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0

WARNING: unrecognized options: --disable-netaccessor-libcurl

情到浓时终转凉″ 提交于 2019-12-23 02:57:24
问题 I am trying to install Xerces-C to my Shibboleth 2 SP following this guide: https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPLinuxSourceBuild But when i run: ./configure --prefix=/opt/shibboleth-sp --disable-netaccessor-libcurl i get this warning: WARNING: unrecognized options: --disable-netaccessor-libcurl [...] config.status: creating src/xercesc/util/Xerces_autoconf_config.hpp config.status: src/xercesc/util/Xerces_autoconf_config.hpp is unchanged config.status: executing

Sending SOAP requests using libcurl as XML file

大憨熊 提交于 2019-12-23 01:52:35
问题 I'm trying to use libcurl to do a SOAP http post to a web service. I have the SOAP requests already formed in XML files which I generate. Now I need to transefer these XML files to the webservice. N.B. I'm pretty new to writing webservices (especially in C). Is there a way do send the SOAP requests straight from the XML file using libcurl? Or do I have to read the contents into a string? I'm restricted to using the C programming language to complete the task. I've been looking through