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
0answers
3 views

Signature calculation fails for s3 bucket upload using curl.

I am struggling to upload object on s3 bucket using curl and openssl(which I have to use as required). Please find below my script for upload. #!/bin/bash -e # Upload a file to AWS S3. ...
2
votes
0answers
24 views

Java - HttpURLConnection PUT request with empty body

I'm trying make a request with Java, when I call it using cURL like this, it works: curl -X PUT http://serverurl.com/method/6eb276a2-5c79-4f6e-a4b5-a26b0e6848c7/action -H 'Content-Type: application/...
0
votes
1answer
10 views

SendGrid Bounce API Curl - Gives “authorization required”

So i'm trying to track if an email returns a bounce (address not found) Here's my code: #Find bounce report. $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1,...
0
votes
0answers
8 views

How to get the zipkin version

Is there any CURL to get the latest available zipkin version and another CURL to get the currently running version in my local environment ? I have to do a version comparison on currently running ...
0
votes
0answers
9 views

Acumatica REST Contract-Based API and PHP Curl, Login And Get Data

I've been trying to get a simple Acumatica contract-based REST API GET call from php, and all I'm getting is an error {"message":"An error has occurred."} I've tried quite a few different ...
1
vote
1answer
22 views

php curl requesting twice

I have a limit of 25 requests/min from PUBGs official API. For some reason instead of it requesting twice for each search its using up 4 requests. I can't figure out why. I have checked that the code ...
0
votes
0answers
16 views

How to reset password with django rest framework SessionAuthentication

I'm building an api for a mobile app. The mobile client has full support for cookies so I want to use SessionAuthentication. After following the Django rest framework tutorial how would you configure ...
0
votes
0answers
10 views

Two seemingly identical GET requests return different responses

I originally raised this on the requests issues page, but it seems that it may not be related to the choice of Python library. I'm seeing a scenario where seemingly identical requests to certain ...
0
votes
0answers
4 views

curl get is omitting json that is shown in the browser

I'm working with the confluence API and testing some endpoints in the browser to make sure it returns the right information and then fetching with curl. When I go to the following url: http://...
0
votes
0answers
10 views

wget recursive download missing subdir files

I am having trouble bulk downloading the https://n5eil01u.ecs.nsidc.org/ICEBRIDGE/RDEFT4.001/ data set using wget on Linux. That address dir contains many subdirs, that each look like: I have set up ...
0
votes
0answers
8 views

Openssl not working with private keys/certificates

Im trying to communicate with an WS that requires authentication using a certificate, but im having some troubles: When i try to send the request using this curl config: curl_setopt($ch, ...
0
votes
0answers
6 views

Curl through an intermediate server

I need to send PUT/GET/POST request with curl through a custom port from client1 to server2. However, server2 only accepts these requests from server1, and denies client1 if connected directly. What ...
0
votes
0answers
7 views

i need to process it background

[i need to process it background, but it's not working, not posting the 'id' to process.php. what's the error?] (https://i.stack.imgur.com/Qo7hX.png)
0
votes
0answers
8 views

Making request from nodejs with .pem certificate

I have this php snippet as an example of how to make a request with a .pem certificate: $curl = curl_init(); $post_fields = "param1=val1&param2=123"; $submit_url = "https://example.com/api"; ...
0
votes
0answers
17 views

Include transient field in script in hyperledger fabric

I am trying to write a bash script to invoke chaincode in hyperledger fabric, without using a cli. I am wondering how can one include transient field in the script? What I want to put in the ...
0
votes
1answer
15 views

curl set server address instead proxy [duplicate]

Sorry for this question, but I already 3 days no idea where the error. I have one page on my own site, which show ip address of user like this : <?php echo "<br>"."Your IP address :"."<br&...
0
votes
0answers
9 views

Convert cURL form file post with token authentication to C#

I'm trying to convert below cURL into a HttpClient or similar using C#. curl --form "[email protected]:\files\test.csv" https://company.com/api/v0/imports/api_name?token=...
-2
votes
0answers
34 views

PHP - cURL error: Couldn't connect to host [on hold]

So I'm developing a SAAS web application for my company using PHP which calls a API. Everything works perfectly on localhost and another server(tried running it on a friends server; no issue with the ...
0
votes
1answer
32 views

Get a param sent in request by curl

I have this curl : curl -vvv "http://test/app_dev.php/transfer/file" -F "file[test]"[email protected] In this route : /transfer/file I get the file and I need to get one more item : $type = $request-&...
0
votes
0answers
25 views

Force download larger external files using PHP

I want to force download larger files using PHP from an external domain. I tried lot of things (especially cURL) like How to protect a file on sub-domain of main site from download without auth in ...
0
votes
0answers
23 views

Curl.h in C++ programming [duplicate]

I want to write the webpage's content into a text file in C++ programming. For that, I have downloaded curl library but still I am not able to compile the program. It is showing the following errors: ...
-1
votes
0answers
8 views

get the original format (NO TMP) to store in API [on hold]

my api only allows data formats jpeg and png to be posted, how to get both data formats in php, while I only always get tmp format, how is this?
-1
votes
0answers
19 views

Connect 2 sites login using SSO

I want to sync login functionality. If user login from 1 site then that user automatically login to other site as well. I have send curl request to my other domain with email and password field and ...
0
votes
0answers
35 views

Huawei hilink (E3372) web api delete-sms returned error 125003

This is my first question, and i'm not a native speaker, please don't be hard on me :) I'm trying to do sms things with the api read/send is ok, but when it comes to deleting part it always return ...
0
votes
1answer
23 views

Insert data to clickhouse using a CSV file adding '&' to first record with CURL | Bash

I'm having issues while trying to insert data using a csv file to clickhouse using CURL, the very first value is adding some characters and looks like follow: ┌─name─ ┬─lastname─┐ │&'Mark'│ Olson ...
0
votes
1answer
17 views

Bash adding extra single quotes to curl command defined as “…$'…'…”

This is very similar to Prevent bash from adding single quotes to variable output, but none of those answers are helping me. This script: set -ex curl_headers=( --silent "--form ...
0
votes
0answers
9 views

curl: error while loading shared libraries: libssl.so.1.0.2: cannot open shared object file: No such file or directory

I tried to install MySQL 8 and ended up having this issue when i restarted, now, i can't use curl etc on the system OS Info Ubuntu 14
0
votes
0answers
22 views

Load next set results from URL - PHP cURL

Looking for some help, i am using curl to extract data from said website, on the site they have 10 results on the first page and then the next set of 10 results are on the next with ?page=2 appended ...
0
votes
0answers
2 views

cURL an array of JSON in bash

Trying this curl: curl http://postb.in/wso9tKdz -H "Content-type: application/json" -d '[{"foo":"bar2"}]' But that makes a request of 0: [object Object]. I'd like to see [{"foo":"bar2"] as the ...
-1
votes
0answers
22 views

curl doesn't load a page behind a VPN, but browser does and curl loads the page when VPN is off - PHP

I have the following code: //Set URL to retrieve $url="http://somelink.com"; //Set agents $agents = array( 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20100101 Firefox/7.0.1', ...
0
votes
0answers
8 views

curl checks certificate even with -k/--insecure flag

curl https://xuzhao06.b...corp.com curl: (51) SSL: certificate subject name 'Self-Signed Certificate for ohs1 ' does not match target host name 'xuzhao06.b...corp.com' curl -k https://xuzhao06.b......
-3
votes
1answer
11 views

How to use curl in android app development

I am trying to make an android application which will use clarifai api , in documentation it says use rest and curl and i have no idea what to do in android development,where to write curl code and ...
1
vote
0answers
31 views

How can I curl deepcrawl?

My Deepcrawl crawl only give null value. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://api.deepcrawl.com/accounts/00000/projects/195334/crawls/1306396/reports/thin_pages_basic"); ...
0
votes
0answers
14 views

Fill third party form with PHP

I'm relatively new to cURL, I've never really used cURL to 'scrape' sites or fill forms, but I need it for my next project. At school, I need to select the classes I want to have, every week again. ...
-2
votes
1answer
40 views

Why curl does not work in symfony controller?

I use the same curl code in symfony command and symfony controller, in command it works while in controller it doesn't. Does anybody know why? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); ...
0
votes
1answer
49 views

Delphi POST Request to the Firebase Realtime Database [duplicate]

I’m writing a desktop application using Delphi XE. I would like to request a POST from my application to the Firebase Realtime Database. Is there any way I can achieve it?
0
votes
1answer
23 views

get data from mailchip using curl where do I place the api key in the curl call

I am tryng to get list members from a mailchimp using curl. This is my code. I cant figure where to place the api key. this is the code I have for now: $apiKey = 'xxxxxxxxxxxxxxxxxx'; $list_id = '...
0
votes
0answers
11 views

libcurl: content-disposition is set to attachemnt when sending form-data

I am using below test code to update parameter "name" of an object at given web address. If I run curl from command line, it updates the object: curl -d "name=rock code" -H "Content-Type: ...
0
votes
0answers
23 views

java.io.IOException: Cannot run program “curl” CreateProcess error=2, Impossibile trovare il file specificato

I have error in the title, my code is: import java.io.File; import java.io.IOException; import java.lang.ProcessBuilder; public class Pro { public static void main (String arg[]){ ...
-1
votes
2answers
7 views

unix curl meaning of checkmarks

Hello people i have a question about how the 'curl' parser works in a linux commandline: i work on a jokto-linux-system where i write commandline instructions: I want to know what is the difference ...
0
votes
0answers
26 views

Always receiving event.data as null,push event service worker

I came across the same question, but can't solved my problem yet. I am getting the success response and the notification bar, but data in event is null so notification bar shows static data that I ...
-3
votes
1answer
31 views

Render hidden value using php curl [duplicate]

I'm trying to render the twitter login page using php curl the whole page is rendered except the value of element "ui_metrics" renders empty i need to get the value. here's the code $ch = ...
0
votes
0answers
27 views

error_code 129 in VK api appWidgets.saveAppImage

Good day! I'm trying to load an image using the method appWidgets.saveAppImage. In the beginning I receive URL the server for loading -> getAppImageUploadServer, there all ok! I receive a hash and an ...
0
votes
1answer
20 views

cURL not taking second argument in Jenkins Pipeline

I have the below custom stage as part of one deployment. This works perfectly when i execute as pipeline script in a pipeline job. However, when I put this in a shared library it is not taking the ...
0
votes
1answer
11 views

Unable to simulate curl in postman

I have a curl request as below: curl -i -H "Content-Type: application/json" -X PUT -d '[]' http://localhost:3000/v1/api/current.json When I hit the above request in command prompt I get status 200 ...
-1
votes
0answers
9 views

curl returns http 404, when i type curl -I -L -k -H 'Host:www.somesite.com' https://xxx.xxx.xxx.xxx

i wonder if you can help. when i type curl -I -L -k -H 'Host:www.somesite.com' https://xxx.xxx.xxx.xxx i get a 404; even though the browser returns the page without issues. Also if i type curl -w -I ...
0
votes
1answer
51 views

REST API: adapt a cURL POST to Powershell 5 (upload files)

I have this cURL command that I must adapt to Powershell in order to upload different files. In order to do that, I have mandatory fields that I need use in the request. I've tried like a dozen of ...
0
votes
0answers
37 views

cUrl waits for url to load IF results are printed

The following curl-call succeeds every time, if and only if $data is printed after the curl-call. curl_getinfo() returning [content_type] => text/html; charset=UTF-8 If $data is not printed, the ...
0
votes
0answers
15 views

PHP guzzlehttp returning different status code than curl

I'm scraping a website for work so I can't give the url but when I curl the page I get 400 response. The same is true when I go to the page on chrome. $ curl -I <url> HTTP/2 400 content-type: ...
1
vote
0answers
20 views

Error: Unable to install R package from private SVN server

On my Windows 10 machine (x64), I am trying to install R package (inside R Studio) from our private SVN server (Visual SVN Server) using instructions given here. The server has a self signed ...