Questions tagged [curl]

cURL is a library and command-line tool for transferring data using various protocols such as HTTP, FTP and SFTP. The cURL project produces two products, libcurl and cURL. This tag covers all usages of cURL, regardless of which cURL product is used

0
votes
1answer
11 views

Using azure curl command with dollar

Hi I am using the curl command to fetch azure activity log curl -X GET https://management.azure.com/subscriptions/xxxxxxxxxxxxxxxxxxxx/providers/microsoft.insights/eventtypes/management/values?api-...
0
votes
0answers
11 views

PHP Curl request runs scripts until end, but gets timeout error

I have a PHP script (script 1) that is called from a website using AJAX. The script will use Curl to call another PHP script (script 2) on the server. THAT script will then use Curl as well to run ...
-1
votes
1answer
15 views

How to monitor a difficult webpage with curl

I'm trying to monitor this page and send an email if it changes. I tried to use curl, but that doesn't work because it seems to be generated on the fly with JavaScript.
1
vote
1answer
25 views

How to output first line of curl result in a file with bash script

I want to read a file of urls, curl each url and only get the first line which contains the HTTP code. I am running under Windows 10 inside Cmder. #!/bin/bash input="urls.csv" truncate -s 0 dest.csv ...
0
votes
3answers
36 views

Curl to VBA Conversion

What is this api code's VBA equivalent (for Name.com Domain Check API): curl -u 'username:token' 'https://api.dev.name.com/v4/domains:checkAvailability' -X POST --data '{"domainNames":["example.org"]}...
1
vote
2answers
25 views

CURL PHP Trying to get property of non-object

I'm trying to parse an html output that i get through CURL using simple html dom, but I get this error: Trying to get property 'innertext' of non-object This is the relevant code: $output = ...
1
vote
1answer
12 views

Curl mechanism, inside the expressjs code

I am new to most of these concepts, so I apologize if this question is trivial. I have a script that makes an HTTP POST request in Curl, for sending json file data . curl https://XXXX.zendesk.com/...
0
votes
1answer
16 views

Run cURL command in Python 2.7

I need to run curl -H "Accept: application/json+v6" -H "x-api-key: <your_api_key>" \https://beta.check-mot.service.gov.uk/trade/vehicles/mot-tests\?registration=ZZ99ABC In Python 2.7. I've ...
0
votes
0answers
8 views

How to run graphql api in php using curl post request

This is a cURL function that can send or retrieve data. It should work with any PHP app that supports OAuth: function jwt_request($url,$token, $post) { header('Content-Type: application/json'); //...
0
votes
0answers
14 views

cURL request in Swagger?

I am new to Swagger. I want to ask a question. I have a docker on the server with a neural network that processes the photo! To send a photo to the docker for processing, I use the string "curl http: /...
0
votes
1answer
23 views

In Marklogic, I have a custom JavaScript function. How do I call it through REST API? What is the process of calling it from CURL?

I have a few documents in my database and I've designed search functions for them. So I want to use curl in cmd and call the function so that I can run the searches and print the results in cmd only. ...
0
votes
0answers
30 views

Implement CURL request with -d parameter with VB.net

I have a CURL request as follows. curl https://xxxxxx.com/api/xxx/version/xxxxx -d "apiOperation=CREATE_SESSION" -d "apiPassword=xxxxxxxxx" -d "interaction.returnUrl=http://xxxxxx" -d "...
0
votes
1answer
23 views

collect the azure activity log

I want to collect the azure activity log. { curl -X GET https://management.azure.com/subscriptions/xxxxxxxxxxx/providers/microsoft.insights/eventtypes/management/values?api-version=2015-04-01 } this ...
0
votes
0answers
9 views

cURL failed to send http get request to remote server from xampp windows 10

When I send get request to my localhost url, it's working nicely- $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => 'http://localhost/mobitext/...
1
vote
1answer
34 views

Getting Google Cloud Text to Speech to work using cURL or Python

Sorry if this is a very simple question, I've been trying to solve the problem myself, but after almost 3 hours I'm about to give up. So I tried following the following advice: Google Cloud Text To ...
-1
votes
0answers
32 views

curl command in .net

I have a curl command I was given and trying to convert and use it in .net. I have tried many different scenarios but this was the closest one I thought would work. Anyone know what I am doing wrong? ...
2
votes
0answers
42 views

Curl: How can I clear stored data while the program is running

I made a text status bar program in C that uses curl to connect to a weather site, grab data, get the correct info, and display it in the bar. That part of the program works perfectly. The issue is ...
0
votes
1answer
30 views

Sending SPARQL update query to Graphdb from Angular

I am trying to send an UPDATE (insert) to a Graphdb instance, starting from an ANGULAR web-application (typescript). Therefore i would need to create a HTTP GET request but I cannot work out how to ...
0
votes
0answers
25 views

Cannot install tensorflow go package (RPC failed; curl 18 transfer closed with outstanding read data remaining)

I am executing the following command to load the tensorflow package for Go: go get -d github.com/tensorflow/tensorflow/tensorflow/go It does not download the source code. I am getting the following ...
-2
votes
0answers
15 views

curl ssl problem while accessing outlook api

Im in a strange situation, I enabled curl.cainfo two months before, and it worked fine, 2 hours before it worked but its refusing now and giving this error while accessing outlook api, From outlook ...
0
votes
0answers
11 views

Using chrome cURL from Linux terminal

I want to download a file from terminal. Chrome can download the file and I used Chrome's cURL to extract the URL (and headers) it uses to download the file. curl 'https://www.url.com/file.zip' -H '...
1
vote
0answers
21 views

Why curl to another server dont work in codeigniter?

I am working on codeigniter and I am doing a POST request curl for another project that is located on another server that is on another network. This is my code. controller from my webpage function ...
0
votes
1answer
11 views

What is the correct way to test an API with token api_key:access_token header?

Following the below steps: created a new app at https://developers.kite.trade/apps obtained the <API key> from the app details page obtained the <API secret> from the app details page ...
0
votes
3answers
30 views

How to iterate all files inside folder and run curl command to install AEM packages

I am trying to create a shell script which to iterate all the zip files and install those in AEM package manager using curl command. The below single curl command is working, It is properly ...
0
votes
0answers
13 views

Google Cloud authentication with JSON keyfile using cURL

I have a JSON key file for Google Cloud in the form of: { "type": "service_account", "project_id": "###", "private_key_id": "###", "private_key": "-----BEGIN PRIVATE KEY-----\n #############...
-4
votes
0answers
24 views

How to fetch sold house price details by zoopla api? [on hold]

I want to fetch the sold price in my area by zoopla api by postcode but in the documentation as given in the link https://developer.zoopla.co.uk/docs only average sold house price and average area ...
0
votes
1answer
13 views

php curl with certificate and key file not connecting with swish payment api

I need to implement Swish Payment e-commerce API with my website. Testing code given by swish is working fine using Git Bash. Sample is here curl -s -S -i --cert ./...
0
votes
0answers
22 views

OPENSSL s_cient request fails (with 408 request timeout)

I am trying to connect to using openssl s_client api, command: openssl s_client -connect <server1>:443 I am getting following output: ---------------------------------Start-------------------...
0
votes
1answer
15 views

Geocoding - cURL approach

I didn't get successfully response with cURL example: curl -X GET https://geocoder.api.here.com/6.2/geocode.json?app_id=<APP-ID-HERE>&app_code=<APP-CODE-HERE>&searchtext=Tracy+CA ...
0
votes
2answers
28 views

UTC time readed from a json time change to UTC+1 in the same command

I do a curl with this command : curl "https://api.sunrise-sunset.org/json?lat=46.745995&lng=7.122781&date=today" | jq '.results.sunrise' the result is : "5:31:51 AM" I am living in UTC+1 ...
-2
votes
1answer
27 views

PHP Curl can't load page

I am trying to open a specific page (https://www.yellowpages.com.au) I have tried simplehtmldom I have also tried Curl I have tried with different headers and added a certificate I can open other ...
1
vote
2answers
22 views

PHP CURL How to filter json results?

in need to filter my curl json requests. My problem is.. my ouput list is allways the complete JSON list (Link 1-3). I need to request only Link 1 & Link 3. Please check my filter example $...
0
votes
1answer
20 views

Apache/PHP undefined function curl_init()

I have this error message when I compile my program in PHP. I have these two lines in my php.ini file : extension=curl extension=C:\Server\bin\PHP\ext\php_curl.dll It still doesn't work, can you ...
1
vote
0answers
17 views

Search results using the Twitter API are not full [on hold]

based on the twitter documentation https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html it is written that the search results that can be done are 180 - 450. But ...
-2
votes
0answers
16 views

How to execute cURL POST request after getting response [on hold]

I'm kinda new to PHP and i'm trying to send form data to API by cURL in PHP. first i'm trying to authenticate to API via credentials, but after i get JWT token the second POST request is not executed. ...
0
votes
0answers
12 views

OSX SSL certificate problem: self signed certificate accessing localhost from webserver

Hi people of the intelligent hive, I spent two hours now, finding a solution for my problem, trying to fix it, but without success. What I want: For a web app project I'm working on (php), I need to ...
2
votes
1answer
36 views

How to convert cURL to PHP cURL

I am using an API to verify some data, and can get their cURL API to work from the command line like this: curl --get --include 'https://domainnameher.com/?domain=whatever@virtual-email.com' \ -H 'X-...
0
votes
2answers
24 views

Curl command issue in bash script because of string variable containing quotes

I am executing curl command inside bash script. Issue is in curl command I have to pass some variables($summary,$description). but as these variables are in single quote('), variables are not getting ...
0
votes
3answers
37 views

curl response is a string in stead of an array

I use the following commands to get a Curl response from an Api: $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://{api-url_goed_here}/api/v2/token", ...
0
votes
0answers
14 views

“Could not interpret \”projects as an identifier in \“projects.”

I try to implement a curl command in a groovy script. The goal is to cerate a task in Asana. The command works perfectly in a command prompt but fails when I try to run it in a groovy-script. This is ...
0
votes
1answer
32 views

Trying to get data from IOT using PHP

I'm trying to get JSON from my IOT application. I can post data to my IOT application so my connection is ok but cant get a response. I only get a not allowed error. I use this code: $ch = curl_init(...
1
vote
1answer
23 views

Curl JSON Post with node-libcurl

I am using node-libcurl to post a JSON to a URL and receive back a JSON. I tested the CURL on PHP and it works fine. The PHP code is the following $data = array('user' => $us, 'pwd' => $cl); ...
0
votes
1answer
24 views

couchbase query node becomes unresponsive while running query via curl

I am running a query on my couchbase query node via curl, noticed the RAM usage on the query node spikes up to 97% very quickly and then the node becomes un-responsive and the curl request terminates ...
0
votes
0answers
9 views

How to upload files using ftp using curl with non-standard port [duplicate]

What is the command for uploading files with ftp using curl but with a different port number. I use "curl.exe -u username -v -T filename ftp://domain". I am trying this in windows and it not working....
0
votes
0answers
17 views

Curl post request fails to post query parameters

I am trying to create a github issue using below command curl -H "Authorization: token xxx" "https://github.yyy.com/api/v3/repos/ambiknai/zzz-kkk-mmm-test/issues/new?title=ok" -X POST and it says ...
0
votes
0answers
13 views

{“code”:415,“message”:“HTTP 415 Unsupported Media Type”} PHP

here is my code for POST CURL PHP while trying to call this code it giving me error i tried to put the content type application/json as per the API documentation but actually still the same code ...
1
vote
1answer
24 views

running curl on dockerfile but getting error because of missing dependency

Trying to run curl from within my container but getting this error, i already copied into the container after installing curl so not sure what I am missing FROM debian:stretch RUN apt-get update &...
0
votes
1answer
24 views

compiling static curl with static openssl 1.1.1a

I have a C++ project that compiles and links to a static curl library (7.46.0). I am upgrading the curl to support openssl 1.1.1a. Building curl 7.64.0 with static openssl using below command. nmake /...
0
votes
0answers
28 views

Calling curl on Windows Command line from Python

At a certain point in the execution of my Python script, I want to call cURL on the Windows command line, like so: import subprocess subprocess.call('curl', shell=True) But I get this error: '...
0
votes
0answers
30 views

Should I use cURL request in cronjob or repeat my existing code?

I have an API file which basically adds content(contacts) to a contacts table. There is some additional logic going inside it. This API file is being used everywhere in the application for inserting ...

http://mssss.yulina-kosm.ru