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
14 views

undefined reference to `curl_easy_init' on CLion/Mingw

I am trying to use curl inside c++ code. How should i do it properly ? I have pasted libcurl.a & libcurl.dll.a in this directory: C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\...
0
votes
0answers
13 views

How to get Acknowledgment and actual response after making a post request in cURL PHP

I'm sending request to an API end point which is supposed to return a response based on the information i sent. I am getting the Acknowledgement of success, but the actual information i'm expecting is ...
0
votes
0answers
7 views

How to get form input value after google sign in on redirect page [where user clicks on a button on the form to be redirected to google sign in]

This is a simple system where for users to like a product they have to sign in to google in order to identify them. The button clicked contains value of product_id but I cant seem to figure out how to ...
0
votes
1answer
13 views

Why the centos curl version is different with php curl version

I updated centos7 curl and now the version is 7.65,then i rebuild php7 and set --with-curl=/usr/bin/curl, after finish make why curl_version() is still 7.20 I use guzzle to request a web which need ...
0
votes
0answers
17 views

Embedded Jetty Closing Open Connections During Graceful Termination

I have written a basic embedded jetty server (with jersey to define endpoints), and need it to terminate gracefully (in response to a SIGINT). I would like all in-flight requests to finish processing ...
0
votes
0answers
39 views

How to make a cloud-hosted file downloadable from <a> tag on the front-end, Chrome

I've been having a really bad time trying to get Chrome to work with downloading files across from a different origin, for example in cloud-hosted files. I'm currently developing on localhost:88 to ...
0
votes
0answers
10 views

How to use curl with if statement, curl is not working

cURL is not working with if statement, what should i do i must use cURL within if statement. <?php $referralpixel_url = (isset($_COOKIE['referral-pixel-pixel_url'])) ? $_COOKIE['referral-pixel-...
0
votes
1answer
26 views

Unclear curl option -o <filename#1>. What exactly does '#' do?

I want to download several files and use variables in their filenames using Curl. e.g.: curl https://curl.haxx.se/docs/{companies,whodocs}.html -o "file_#1.txt" I am using curl 7.61.1 From Curl ...
-2
votes
1answer
28 views

PHP, json array [on hold]

{"token":"9374B43D-1A09-464E-A5BB-2E2F85B7155E","email":"teste@teste.com","items":[{"description":"produto 1","quantity":1,"price_cents":5400},{"description":"Produto 2","quantity":2,"price_cents":...
0
votes
0answers
11 views

WooCommerce REST API POST request parameters not used with cURL

I managed to install the cURL library and make it work in my C++ project but the POST requests don't seem to work specifically with the WooCommerce REST API. I tried the same request in Insomnia, and ...
0
votes
0answers
21 views

Pass variable to jq [duplicate]

Im executing a 'curl' operation and keeping the JSON response on a variable. Because I need to extract multiple values from this response I want to pass the variable to jq command instead of the curl ...
0
votes
0answers
6 views

Unexpected exception: java.io.IOException: RESTEASY007550: Unable to get boundary for multipart

Using nexus-repository-apt plugin and trying to upload *.deb packages with curl according to this instructions: curl -u user:pass -X POST -H "Content-Type: multipart/form-data" --data-binary "@...
0
votes
0answers
20 views

Seting a Curl command to run in a Zapier Webhook

I'm trying to find the way to run cURL query in Zapier webhook, but I can't seem to figure it out. How would I enter this in the Webhook? curl 'https://api.com/graphql' -H 'Accept-Encoding: gzip, ...
0
votes
0answers
26 views

how can i fix this login with curl

I try to login to this website with curl but it didn't work when I change the curl_get url at the bottom to the same curl post url then I see the login page and when I change it to another page I get ...
0
votes
0answers
9 views

Scrap data from website how to scrap codes

Scraping website with curl all text are scraped but the curl breaks where the code starts like c codes <div class="MsoNormal" style="margin-bottom: 0.0001pt;">/* Header file declaration */<...
0
votes
0answers
24 views

Fetching data from SKULabs API via Google Apps Script

I am looking to fetch data from SKULabs via their API. I have a basic connection, but I am looking to pull data using either the 'SKU' or 'Name' variables. How do I pass those parameters? Their API ...
0
votes
0answers
5 views

How to use multipart while posting the data to rest api

Hi I am trying to call restapi to post some request ...here I need to use multipart section can you please suggest how to build data..this I need to do through Jenkins http plugin..
0
votes
0answers
31 views

foreach loop isn't adding another row to html table

I have an assignment to setup a shopping cart for stocks. The API query works and I can add quantity to the cart. The foreach loop displays 1 row in the HTML table. If I perform another API query for ...
-2
votes
0answers
6 views

Access a web page [uses OAuth] from curl command

I need to access/download a google web application using curl command. The web application needs OAuth authentication. Once authenticated [on the web browser] i can get a cookie that can be used in ...
0
votes
0answers
11 views

InfluxDB returns bad timestamp. I have no idea why

I doubt this is a duplicate issue but it might be the same problem as seen elsewhere. When I try to insert things into InfluxDB via CURL, it just keeps giving me the same invalid timestamp error. I ...
0
votes
0answers
40 views

“UNAUTHENTICATED” when trying to encrypt text with Google Cloud KMS and API-KEY

I'm trying to encrypt/decrypt files with Google Cloud KMS. Encrypting/decrypting with the gcloud command works perfectly. But now I need to pass this to other users who don't/should not have acces to ...
0
votes
0answers
13 views

How to fix ERR_EMPTY_RESPONSE on Chrome? (PHP cURL)

I have problem only on Chrome. On Firefox working very well. define('USER_AGENT', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.2309.372 Safari/537.36'); ...
-1
votes
1answer
30 views

How to encode an xls file in base64?

I am encoding an xls file to base64 using php. Then I send it using curl to my server (using an API). I decode it, but when I download the file I get an unreadable file. $xls = file_get_contents('/...
-1
votes
1answer
26 views

How can I fix CURL quotes strpos() problem?

Firstly, sorry my bad English. I'm taking text from a site with Curl. After that, I am searching in text some words with strpos(). But; when text coming with quotes, my function is not working. For ...
0
votes
0answers
28 views

How to send pictures to Dropbox using Curl's C++ library

I made a program that controls a camera autonomously and I need to send the pictures taken to Dropbox. I looked at their API and found an example to send text files to Dropbox. It worked but when I ...
0
votes
1answer
16 views

Vagrant docker provisioner - cannot curl to localhost

I am trying to emulate our microservice framework with Vagrant and Docker. I have a Vagrant VM which serves as an API gateway. In the Vagrantfile I used Docker provisioning to setup Kong. My objective ...
0
votes
1answer
22 views

Does IBM Watson provide support for all the locations?

I wanted to use IBM Watson so does it provide support for all the locations? In their docs they have mentioned it does not provide support for all the locations. All locations might not support ...
-1
votes
0answers
12 views

How to write a shell script to install nvm and nodeJs?

for some reason I need to write a shell script to install nvm and nodeJs. I know how to do it at command line curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash . ~/...
0
votes
0answers
10 views

Batch subscribe users with Mailchimp API

As per the API documentation here https://developer.mailchimp.com/documentation/mailchimp/reference/lists/#create-post_lists_list_id, the API makes it possible to batch subscribe several users, by ...
0
votes
1answer
16 views

How to send a request to the WooCommerce API

I'm currently building a solution for a company as an intern, and I need to use the WooCommerce REST API features in my C++ project to send data to the website. I've so far, after 2 long painful days,...
0
votes
0answers
14 views

JS Fetch use Chunked Transfer Encoding (translating curl to Fetch)

I'm trying to convert this curl command from the Kaldi docs: curl -v -T test/data/english_test.raw -H "Content-Type: audio/x-raw-int; rate=16000" --header "Transfer-Encoding: chunked" --limit-rate ...
0
votes
1answer
16 views

posting a file with curl command?

Hi i am having a curl command to post data . curl -v -X POST "http://localhost:8080/api/files" -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9....
0
votes
1answer
36 views

how can I skip something in regex?

I want to see all field input and textarea but I don't know how to show it together in the same code. and in case I want to skip something for example I want to write directly input name without make ...
0
votes
1answer
36 views

Why the PHP curl is not working? When it works from command line curl?

When i do it from command line as below it works: $ curl -X "POST" "https://ABCD/login/oauth2/access_token" -H "Authorization: Basic XXXX=" -H "Content-Type:application/x-www-form-urlencoded" --...
0
votes
0answers
9 views

How do i send multiple attachments via Facebook Message API

I have a Python code that sends an attachment (image) in a workplace thread: def send_message(recipient_id = 3632761541525178, message_text ='mehmeh',typeofrec ='id'): bash_curl = """ curl \ -F ...
-2
votes
0answers
15 views

Curl static library symbols undefined error at runtime

I am compiling my c++ application in g++ and it uses Xerces 3.1.2 library which internally requires curl library. While the compilation goes fine, i get the some runtime error. I have a c++ ...
0
votes
0answers
17 views

PM2 status always “errored” when run bash curl cron

I use pm2 to manage the process. I have the bash script name "check.sh" that post to a URL curl -i -X POST https://postman-echo.com/post --data "This is expected to be sent back as part of response ...
0
votes
0answers
19 views

LearnUPON - I'm getting 404 response when call my Insert API

I'm going to implement Learn Upon API into my .net MVC application, they gave cURL and I have to convert these cURL URL into the web request in C# for getting or sending data to the third party Learn ...
0
votes
1answer
30 views

Pass Variable Via JSON with CURL

How to pass a form variable to another page via JSON? I had create two php file with file naming page_login.php and login.php. However when running login_post.php, the $json value unable pass to login....
-2
votes
0answers
16 views

Can post videos to facebook with cURL?

I have tried some articles. But it doesn't work. Can I post videos to my fanpage? https://graph-video.facebook.com/v2.5/ID_PAGE/videos?access_token=TOKEN_PAGE&title=123&source=...
0
votes
0answers
10 views

curl PUT returning empty response when content type is set

Just found a weird issue, when I try PUT by: curl --request PUT https://thidpartyendpoint I got good response. But when I try setting the header content type curl --header "Content-Type: ...
0
votes
2answers
50 views

Extract text prefix and url list to consequtive numbered output line

I am trying to extract the "product_sku" from a text file (raw.txt) which has a list of urls. I then need to add the extracted text as a suffix to the end of each url numbered (0-36) to the output ...
0
votes
0answers
25 views

Libcurl function curl_easy_perform never returns when performing POST request

I compiled libcurl 7.64.1 like a static library and I linked to a DLL of mine, both I built using Visual Studio 2017, Windows 10 Pro x64. I am following this example https://curl.haxx.se/libcurl/c/...
0
votes
1answer
21 views

How to turn Curl response into Json so I can use it on the front-end?

I have a function which uses curl_multi to make several GET requests. However, I can't figure out how to turn the response to JSON so I could access it on the front end. Usually I use json_decode(), ...
0
votes
0answers
20 views

Curl replace LibreSSL to OpenSSL

How to replace LibreSSL to OpenSSl? $curl --version curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1 what would you like curl 7.61.0 (x86_64-apple-...
0
votes
0answers
17 views

Backblaze Storage B2 PHP Download with Authorization from Private Bucket

I'm sort of struggling to understand the documentation for BackBlaze B2, I want to download files from a private bucket using PHP, I know the file ID and I want to get authorization (like 30 seconds) ...
0
votes
0answers
16 views

php curl image upload API not working. If I set content-length larger than 0 the request remains pending

I am trying to upload an image from my server to another server using their API. I am getting a 422 error code with a message telling me I have left the image field empty. I have found this question ...
0
votes
1answer
9 views

How to add UTF-8 encoding in POST request

I have following POST request: curl --request POST \ --url http://<myurl> \ --header 'content-type: application/json; charset=UTF-8' \ --data '{ "message": "Hebräisch?" }' I have to choose ...
1
vote
1answer
28 views

How to send a blank accept header with Curl - PHP

I've seen a couple of related issues, but unfortunately, none of the recommended solutions had solved my problem. I'm trying to send in a blank Accept header using PHP curl: PHP Version: 7.3 Disto: ...
0
votes
2answers
50 views

curl is able to GET from https; but from golang's http.get(), same https URL does not work

When I do curl https://10.184.96.62:3000/status, server sends back json data. All good. Using the below golang code, the application prints : 2019/05/21 18:29:15 Get https://10.184.96.62:3000/...

http://mssss.yulina-kosm.ru