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.
42,494
questions
0
votes
0
answers
11
views
Download Gitlab file in Docker container
I want to download a .h5 file into my container and load it into some code, I tried using curl/wget Git API in the Dockerfile to download it, but when I check the files in the container its not there.
...
0
votes
0
answers
15
views
PHP curl_init consistently returns 0 and setopt's fail
I'm running PHP 8.1.4 in Docker/Docksal.
PHPInfo yields the following for curl:
curl
cURL support enabled
cURL Information 7.74.0
Age 7
Features
AsynchDNS Yes
CharConv No
Debug No
GSS-...
0
votes
0
answers
15
views
Why CURL didn't work from inside docker container?
I have 2 services in Docker (each service has its own docker-compose.yml, nginx + php-fpm).
Service #1 on port 48801.
Service #2 on port 48802.
My server IP 99.99.99.44 (CentOS 8).
I make CURL request ...
0
votes
0
answers
13
views
Accessing exchange rates converted into CAD from USD isn't working
I'm not sure why the test program below isn't getting the response from the API. Here is the document for the API.
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => &...
-1
votes
0
answers
23
views
Log in to IMDb with command line cURL
I have a bash script which needs to be able to download a CSV export of an IMDb list. All I need to do is hit the URL https://www.imdb.com/list/ls123456789/export?ref_=ttls_exp, where the "...
0
votes
0
answers
5
views
Curl reports SSL certificate problem despite having installed Curl's cacert.pem
I downloaded cacert.pem and saved it under PHP extras/ssl folder. In phpinfo() I can see that the cert is pointed at, by curl.cainfo.
I test with the following script:
<?Php
$curl = curl_init() or ...
-2
votes
0
answers
22
views
Curl working on postman but not using my website
i just wanna know why and how to solve my problem, i get a error 403 forbidden as a response of a curl on my symfony website, while the same curl works on postman. First i wanna know why this error ...
1
vote
1
answer
49
views
Is it possible to logout in Laravel using Curl?
web.php (Inside routes directory)
Route::get('directLogout', function (Request $request) {
$user = User::where('email', 'pratik@test.com')->first();
Auth::login($user,true);...
0
votes
1
answer
24
views
Getting 500 error while running cURL Request with POST Data Using HTTP Controller.php
This is my FlightController.php file
public function data(){
// URL
$apiURL = 'http://stageapi.ksofttechnology.com/API/FLIGHT/';
// POST Data
$postInput = [
...
0
votes
1
answer
46
views
Certificate issues with centOS7 with curl
I have an issue when using certificate when using curl. I'm running centOS7. We managed to get the curl going in other places, but not our dev machine:
What we are trying to do:
sudo curl -X 'GET' '...
-2
votes
1
answer
47
views
Double digit after decimal places
I made an API and below is the response:
"mappingFields":{"concessionRate":0.0,"baseRate":4.90,"crp":0.00,"loanApplicationNumberVariable19":0.00,"...
0
votes
0
answers
18
views
Using R, how to get response headers with `download.file`?
I have R 4.20+, so I believe utils::download.file is using capability libcurl.
I can get the headers of a url with base::curlGetHeaders(url).
Is there a parameter I can pass in download.file to return ...
0
votes
0
answers
5
views
API request using a form-data with robot framework
i have started to use Robot Framework 3 months ago and i wish to test an API
i have the request working on my postman but i don't understand how to put it on robot framework
Here's the curl
curl --...
0
votes
0
answers
25
views
Web scraping but not scraping changes
Trying to monitor changes on this page: at5.nl/zoek/pijp . "pijp" is a query keyword here. It shows a list of articles with the latest on top:
[enter image description here][1]
When I scrape ...
-1
votes
2
answers
55
views
Convert cURL format to Delphi
I need to mimic this Curl command in Delphi, how can I do it?
curl -X POST \
https://api.encurtador.dev/encurtamentos \
-H 'content-type: application/json' \
-d '{ "url": "https://...
-1
votes
0
answers
12
views
Facebook API Asynchronous request example
I am trying to make Asynchronous requests to facebook marketing api for account insights end point.
I have tried to look for some examples but the documentation is not very explanatory.
So can someone ...
0
votes
2
answers
20
views
PHP curl PUT does not continue respectively send payload/data
I need to PUT some json data to an API endpoint, which works as expected via command line curl, but not via php curl and I don't have any idea, why it doesn't.
my command is
curl -v --insecure --...
-1
votes
0
answers
18
views
Responses different through Python requests vs cURL
I am testing getting a search result page with the requests library in python but when sending the request through I get the whole html page, but the search result links have a bunch of extra ...
0
votes
0
answers
14
views
Working with Bearer Authentication token and get Server ID error?
I get this error when running my bearer authentication
Error 403 Server id is not valid: [<token==]
Any help would be great!
EDIT - what i enter in my command line
curl -X POST https://api-...
0
votes
1
answer
42
views
curl + Unauthorized: Access is denied due to invalid credentials
I am using the following bash script in order to get info from curl from --> https://komat/api/v1/jedh ( from chrome browser page we get the expected results but not from curl )
#!/bin/bash
url=&...
0
votes
0
answers
5
views
Transform UrlEncodedForm mitmproxy to json data axios
With mitmproxy, I copy a curl request which work perfectly :
curl
-H 'authorization: OAuth oauth_consumer_key="xxx",oauth_nonce="xxx",oauth_signature="xxx",...
0
votes
0
answers
12
views
Error 415 while trying to update Confluence page via JavaScript
I'm currently at an internship and got the task to update a website. At first I did it with the curl command in the windows console.
curl -D- -X PUT -H "Authorization: Basic API-Token" -H &...
0
votes
0
answers
25
views
Post request cannot be sent
I want to send a post request for a url with curl.
This is my code to do this in the post.php file:
$url="http://localhost/result.php";
$api_key="...
0
votes
0
answers
36
views
CURL put not sending data
I'm trying to create a curl PUT request. However, for some reason the json data doesn't get send to the api server.
public function sendRequest($endpoint, $method, $params = [], $data = null)
{
...
-1
votes
1
answer
22
views
Symfony - How to upload large files to onedrive?
Hello, how are you?
Currently, I am building a symfony project(symfony 5.4).
I am going to write a standalone upload script to upload backup files(.zip files) automatically to OneDrive.
And the files ...
0
votes
0
answers
28
views
Convert curl request to python request error
I'm trying to convert the cURL to Python request but doesn't work.
cURL:
curl -G 'http://10.255.254.212:8086/query?db=telegraf' --data-urlencode 'q=SELECT last("value")/10 FROM "Cisco-...
0
votes
1
answer
26
views
Add attachement to message : Discord Webhook [BATCH]
I've searched all around internet, trying to combien only file command with only content command, but, nothing work, i would like to get some help, i need a curl command to but in .bat / batch file ...
0
votes
4
answers
32
views
How to run 500 api requests in parallel at the same time
Need to stress test an api and have a requirement for 500 API requests within a second. Is there command to test this?
Was using xargs but the responses timestamps were not all the same, changing ...
0
votes
0
answers
29
views
Curl: The system cannot find the path specified
I am trying to build the digit recognition app found in this tutorial:
https://www.toptal.com/data-science/machine-learning-number-recognition
https://github.com/teimurjan/digits-recognizer
I run the ...
1
vote
2
answers
46
views
How do I troubleshoot Curl in PHP?
I have never used Curl but I am trying to complete a self api project at my job just to gain some experience.
And I am stuck on the first step... I want to authenticate with an api.
So I am running ...
1
vote
1
answer
29
views
Debugging curl SSL error 14094438 with Caddy
Caddy thinks everything is fine:
{"level":"info","ts":...,"logger":"tls.issuance.acme.acme_client","msg":"validations succeeded; ...
0
votes
0
answers
19
views
curl failing with --insecure(-k) and missing --cacert
I have a client server interface.
The case is unusual, because the server authenticates client and not vice versa.
The client sends client cert to the server. The server authenticates the client cert ...
0
votes
0
answers
15
views
Curl command does not supporting other language text
I had tried with utf-8, utf-16 but other language text shows like ????????
cd C:/test/ && curl localhost:9001 --data @ C:/test/Basic/SPND.xml -o C:/test/Basic/Result.xml;
In Node js
const {...
-1
votes
0
answers
20
views
Pass Variables to a Chat Form (PHP / cUrL)
I want to post data to this form:
http://arkanis.de/projects/simple-chat/example.php
Using
A) cUrL linux
B) The web browser URL
(The Source Code is written on the link above)
What is the correct ...
0
votes
1
answer
15
views
Central OAuth2.0 Authorization on the Backend-Side using PHP and curl for Spotify Web API
I am creating an application which aims at automatically creating Spotify Playlists in a central Spotify account (not the account of the end users).
I have set up this account and created the ...
0
votes
0
answers
49
views
Video Upload to imgur failed successfully via using curl
Image upload via curl works perfectly, but not for videos.
The imgur api documentation is outdated does not seem to work with video files.
The video file is fairy small, it's .mp4 file and the imgur ...
0
votes
1
answer
18
views
Convert curl command to angular post http request
I don't know what I did wrong, I just want to convert this curl command to get work in angular post request.
Curl Command
curl -F file=@someFile.txt https://store1.gofile.io/uploadFile
Angular ...
0
votes
1
answer
26
views
How to execute curl commands from node js
My curl command sends XML data from XML file and the response is written in the specified path. My question is how to make this happen in node js.
cd C:/test/ && curl localhost:9001 --data @ ...
0
votes
2
answers
41
views
Using xargs to make parallel curl API calls
When i run the following command:
seq 1 1 | xargs -I % -P 5 curl -k --user user:pass "https://localhost:port/api"
I only get one response back. I would have expected to get 5 responses ...
0
votes
1
answer
64
views
How does curl separate data to send?
I'm writing an HTTP server with C++ WinSock sockets, I use recv to receive data from curl via TCP stream. When I send small files everything works fine, but with bigger files curl seems to split data ...
0
votes
0
answers
18
views
Use expired client certificate for testing
I'm trying to understand how to implement client certificate authentication with Kestrel/ASP.Net Core 6.0 on Windows.
So far I was able to successfully authenticate Firefox and Edge with a client ...
0
votes
0
answers
25
views
uploading ftp file in php
does anyone here know how to upload file to shutterstock ftp using php code?
$upURL = "ftp.shutterstock.com/";
echo $upURL;
//die();
$fp = fopen($localfile, "r");
...
0
votes
0
answers
22
views
Can you automate getting curl request from Postman?
Is there a way to automate accessing the curl request after a test failed and saving it to a variable?
I need this so I can display the curl request on TFS after an automated test fails.
Thank you! :)
-1
votes
0
answers
24
views
How to convert Curl to Python I want to send WhatsApp message using WhatsApp API
I have the following command. from Facebook and I would like to know if there's anyway to convert curl using a lib or if I can use some other lib to convert the data?
I would like to send messages ...
0
votes
0
answers
24
views
Trying to load to sftp server in r
I really wanna upload a newly updated excel file which is stored on my local machine to the SFTP folder using r script
here is the code using Curl and HTTP package
ftpUpload(what = "Glo_failed....
2
votes
2
answers
73
views
Bash parallel curl requests from array of URLS inside for loop
everyone!
I'm trying to make parallel curl requests from array of urls to speed up bash script.
After research I found out, that there are several approaches: GNU parallel, x-args, built-in curl ...
0
votes
1
answer
40
views
curl unathorized and (23) failed writing body
I'm trying to follow this example, but i'm stucked on Get Scooter Locations
https://github.com/ubahnverleih/WoBike/blob/master/Beam.md
I get the access code, but when I try to get scooter location, it ...
-3
votes
0
answers
23
views
Curly braces as Curl output [closed]
I am getting curly braces as the output whenever I am running a specific Curl command. What is the output trying to say?
The screenshot of the output
0
votes
1
answer
31
views
Adding Product Images in Shopify using CURL In PHP - Cloudflare Errors
I'm trying to add images to my products using CURL in PHP based on this: https://shopify.dev/api/admin-rest/2022-07/resources/product-image#post-products-product-id-images
This is what it should look ...
0
votes
0
answers
62
views
Python flask restful api to accept a .csv file uploaded using a curl post request and parse its contents
At the very outset, proper greetings to everyone. I'm not well-versed with resful api. My task is to upload a .csv file using curl post request that (the .csv file) will be a handled by a python flask ...