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.
curl
43,990
questions
0
votes
1
answer
50
views
Upgrading PHP to 8.3.9 from 8.2.12 on Windows 11 - cURL is not working [closed]
Steps I am taking:
Fresh install of XAMPP, which uses PHP 8.2.12.
After install, I confirm that cURL shows enabled in my phpinfo and my local coding files work as expected.
I renamed the existing php ...
0
votes
0
answers
16
views
Torrent Announce URL Improperly Formatted? [duplicate]
I'm working on a BitTorrent client and seem to be unable to obtain information from the announce URL. I've included the generated URL below:
https://torrent.ubuntu.com/announce?info_hash=%2A%A4%F5%A7%...
0
votes
1
answer
43
views
PHP Curl Seems to Block Server Response Resulting in a Timeout
I've been chasing my tail on this one all day. I have an instance of Adobe Commerce (formerly Magento 2) running on an AWS server. I'm using Adobe Commerce's Curl adapter to make a server-to-server ...
-2
votes
0
answers
24
views
How to write properly callback for request with libcurl [duplicate]
I'm new to libcurl. I need to get value from JSON. What should i write in callback function. Thanks in advance.
#include <iostream>
#include <string>
#include <curl/curl.h>
size_t ...
0
votes
0
answers
24
views
Libcurl multi: removing completed transfer before checking for messages, will the message be still in the queue?
I have a situation where, using the multi-interface, I have a set of running transfers, and at some point I would like to stop one of them, even if I'm not sure if the transfer has already completed ...
0
votes
0
answers
43
views
curl issue with URL with quotes
I'm trying to return some JSON data from curl using an API call with single quotes in it. Each time it acts like I haven't formatted the URL correctly, giving an error code of 3.
Error:
* Could not ...
0
votes
0
answers
26
views
rancher on docker container not able to clone repos due to Insufficient randomness error
I am trying to run rancher on a docker container in my Synology NAS, but I am betting the following error:
[ERROR] error syncing 'library': handler catalog: Clone failed: Cloning into 'management-...
0
votes
2
answers
39
views
How to get JSON output from gemini-1.5-pro-001 using curl
How can I retrieve data in JSON format from the Gemini 1.5 API using curl?
The code below works correctly:
curl -H 'Content-Type: application/json' -H "x-goog-api-key: ${API_KEY}" -...
1
vote
0
answers
17
views
401 Response From TPR FMCSA
I am a training provider and I am trying to submit my drivers data for Online courses to TPR registry.
You can visit https://tpr.fmcsa.dot.gov/ to know more.
I am using their training Provider ...
0
votes
0
answers
43
views
Different responses to the same requests (curl, python aiohttp) on the server and on the local host
I have a parser written in Python (aiohttp, bs4). One of the functions of the parser is to access a file by a link (example: https://modsfire.com/d/Mwv01aESgj73zx7).
import aiohttp
import yarl
import ...
0
votes
1
answer
62
views
What is wrong with my GET and PUT test commands?
For my CRUD in Django the POST and DELETE tests are working:
curl -X POST http://localhost:8000/user/ -H "Content-Type: application/json" -d "{\"username\": \"john_doe\&...
0
votes
0
answers
20
views
How to escape characters for curl?
I'm writing a shell script that makes some curl requests.
This is the part causing me problems:
URL="http://127.0.0.1:${PORT}${LOCATION}"
echo $URL
sleep 10
RESULT=$(curl $URL)
echo $...
1
vote
0
answers
37
views
Access and Change settings on a TP Link Modem using curl or similar
I can't seem to find any working references or examples which would allow me to make changes to the settings in my Archer A23 WiFi router using any form of script. I've spent some time trying to get ...
0
votes
0
answers
10
views
invoiceplane docker has php error connection reset by peer
i try to launch invoiceplane project
this code is from github
project source: https://github.com/InvoicePlane/InvoicePlane
all container except php is work correctly
but have an error when :
curl iv....
0
votes
0
answers
28
views
C# HttpClient fails to connect when binding to non-default route interface, but curl works
I'm trying to send HTTP requests through specific network interfaces on my Raspberry Pi running .NET. I've written a C# program that creates an HttpClient bound to a specific interface. However, I'm ...