tagged [curl]

curl.h no such file or directory

curl.h no such file or directory I installed curl this command (i use Ubuntu): When I test simple program using `g++ test.cpp` ``` #include #include int main(void) { CURL *curl; CURLcode res; curl ...

8 May at 05:28

Is there a way to discover all endpoints of a REST API?

Is there a way to discover all endpoints of a REST API? I'm wondering if its possible to programmatically discover all the endpoints of a particular API. So for example if I GET this URL with a browse...

Making a cURL call in C#

Making a cURL call in C# I want to make the following `curl` call in my C# console application: I tried to do like the question posted [here](https://stackoverflow.com/questions/5152723/curl-with-user...

13 Feb at 14:28

How to test web service using command line curl

How to test web service using command line curl I am building a web service for a web application, and I would like a simple tool to test this as I am developing. I have tried some firefox plug-ins (P...

17 Nov at 12:38

Php posting file to ServiceStack API

Php posting file to ServiceStack API I need help posting a file (doc, Docx, or pdf) to a ServiceStack API using PHP. php cURL setup: ``` $curl = curl_init(); $cfile = new CURLFile('C:\\test.doc'); $pa...

11 Jun at 14:11

Fatal error: Call to undefined function curl_init()

Fatal error: Call to undefined function curl_init() ``` base64_encode($data), 'key' => IMGUR_API_KEY); $timeout = 30; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'http://api.imgur.com/2/uplo...

29 Jan at 07:16

Getting HTTP code in PHP using curl

Getting HTTP code in PHP using curl I'm using CURL to get the status of a site, if it's up/down or redirecting to another site. I want to get it as streamlined as possible, but it's not working well. ...

13 Jul at 16:15

What is the incentive for curl to release the library for free?

What is the incentive for curl to release the library for free? I recently started using libCurl for my VC++ project. I've been wondering: what is the incentive for the curl creators to release the en...

28 Apr at 19:30

cURL GET Request Returns No Output

cURL GET Request Returns No Output I'm sending a simple `curl` request to `pinterest.com`. When I do it using `PHP` no result is shown. I tried it from command line and no result showed up. Then I tri...

3 Mar at 06:32

Curl GET request with json parameter

Curl GET request with json parameter I am trying to send a "GET" request to a remote REST API from Command Prompt via cURL like this: But it returns no output. I tried to ping the URL directly from th...

22 Jun at 02:52

How to PUT a json object with an array using curl

How to PUT a json object with an array using curl I have a series of data to enter into database. The user interface to enter the data isn't good for bulk entry, so I'm trying to formulate a command l...

22 May at 13:2

CURL and HTTPS, "Cannot resolve host"

CURL and HTTPS, "Cannot resolve host" I'm trying to fetch the contents of a page using CURL. The page that is doing the fetching is https and the page it is trying to fetch is also https. I'm getting ...

27 Aug at 14:57

How do i check if php server allows external curl connections

How do i check if php server allows external curl connections How do i check if php server allows connecting via curl to external sites before buying hosting package (or registering on free host)? I n...

15 Nov at 21:7

How to use CURL via a proxy?

How to use CURL via a proxy? I am looking to set curl to use a proxy server. The url is provided by an html form, which has not been a problem. Without the proxy it works fine. I have found code on th...

23 May at 12:17

curl Failed to connect to localhost port 80

curl Failed to connect to localhost port 80 My host's file maps `127.0.0.1` to `localhost`. And then ``` $ curl -I 127.0.0.1 HTTP/1.1 200 OK Server: nginx/1.2.4 Date: Wed, 09 Apr 2014 04:20:47 GMT Con...

5 Mar at 16:3

Making an API call in Python with an API that requires a bearer token

Making an API call in Python with an API that requires a bearer token Looking for some help with integrating a JSON API call into a Python program. I am looking to integrate the following API into a P...

PHP - SSL certificate error: unable to get local issuer certificate

PHP - SSL certificate error: unable to get local issuer certificate I'm running PHP Version 5.6.3 as part of XAMPP on Windows 7. When I try to use the Mandrill API, I'm getting the following error: > ...

25 May at 23:26

Using cURL to upload POST data with files

Using cURL to upload POST data with files I would like to use cURL to not only send data parameters in HTTP POST but to also upload files with specific form name. How should I go about doing that ? HT...

1 Apr at 16:59

How to define the basic HTTP authentication using cURL correctly?

How to define the basic HTTP authentication using cURL correctly? I'm learning Apigility ([Apigility docu -> REST Service Tutorial](https://www.apigility.org/documentation/intro/first-rest-service)) a...

WebRequest Equivalent to CURL command

WebRequest Equivalent to CURL command I am banging my head against a wall trying to convert a working curl command to a c# WebRequest. I have read through quite a few postings and I pretty sure I had ...

21 Jan at 10:41

PHP cURL error code 60

PHP cURL error code 60 Whilst trying to setup a php environment on windows (using wamp) to use the Amazon PHP SDK, when i try to run a sample test I get the following error: ``` Fatal error: Uncaught ...

14 Jan at 13:8

Converting a POSTMAN request to Curl

Converting a POSTMAN request to Curl I am calling my java webservice (POST request) via POSTMAN in the following manner which works perfectly fine (i.e. I can see my records getting inserted into the ...

2 Feb at 02:13

Curl error 60, SSL certificate issue: self signed certificate in certificate chain

Curl error 60, SSL certificate issue: self signed certificate in certificate chain I try to send curl request with my correct APP_ID, APP_SECRET etc. to the I need to get access_token from it, but get...

1 Dec at 18:6

Getting title and meta tags from external website

Getting title and meta tags from external website I want to try figure out how to get the Even though if it's arranged in any order, I've heard of the PHP Simple HTML DOM Parser but I don't really wan...

28 Oct at 10:52

Ignore SSL Certificate Error with Wget

Ignore SSL Certificate Error with Wget I have the following code in my coldfusion code that works: This downloads an Excel file from the specified path using cURL and dumps it to the browser, which wo...

2 Oct at 16:30