43,832 questions
0
votes
0
answers
31
views
REST API request succeeds via cURL but fails with 500 Internal Server Error when sent from Python (requests) inside ERPNext (Frappe)
I’m integrating ERPNext (Frappe Framework) with the Pakistan FBR DI API.
I’m facing a strange issue:
When I send the request using cURL, the invoice is accepted successfully.
When I send the exact ...
0
votes
0
answers
51
views
Why does Apple iCloud CalDAV always return 400/405 on PUT (creating events)? Is iCloud CalDAV write-protected?
I’m trying to create events on an iCloud Calendar using CalDAV.
READ operations work:
PROPFIND → OK
REPORT (get events) → OK
Authentication with app-specific password → OK
But every PUT request (...
0
votes
0
answers
36
views
Slack files.getUploadURLExternal API returns “missing required field: length / filename” even though fields are provided
I'm trying to migrate from the deprecated files.upload API to the new Slack upload flow using files.getUploadURLExternal.
According to the documentation, the request should include a filename and ...
Advice
0
votes
0
replies
37
views
Spring Boot CommonsRequestLoggingFilter to curl
In Spring Boot I use the standard practice of using a CommonRequestLoggingFilter bean to log the full requests in a debug profile.
2025-11-14T16:22:26.617+01:00 [362-exec-9] DEBUG ...
-1
votes
1
answer
114
views
Walmart Marketplace API Error: shippingSummary field is required
Question:
I'm trying to create an inbound shipment using the Walmart WFS (Fulfillment Services) API v3, but I keep getting an error that shippingSummary is a mandatory field for ICC sellers. However, ...
-4
votes
1
answer
43
views
Streaming text for CURL with SolidJS & Vercel
Is there any way to stream text when my site gets CURL'd, similar to https://malted.dev/ ? I've tried using Vercel's functions, but I could not get it to return anything other than the HTML. If ...
1
vote
1
answer
77
views
Why might cURL return '(56) Failure when receiving data from the peer' from API when python requests and javascript fetch() work
I am migrating some control software written in python, running on a Raspberry Pi, to Home Assistant. I am having trouble getting a REST sensor to work. The sensor is supposed to post and receive info ...
0
votes
0
answers
49
views
How can I fetch a single nutrition result from USDA Food API?
I'm looking for the USDA Food API that will search their database and return ONE result.
Their guide says to use:
curl https://api.nal.usda.gov/fdc/v1/foods/search?api_key=DEMO_KEY&query=Cheddar%...
-3
votes
1
answer
123
views
Curl completing too late for following instruction
I updated my Fedora OS for the first time in many years, and the python version updated as well. This necessitated some minor changes to my existing code (naked print no longer allowed, <> ...
2
votes
0
answers
68
views
Mason.nvim works on Windows but not on my WSL [closed]
I’m running Neovim 0.10.0 with mason.nvim inside WSL (Ubuntu).
I have 2 Neovim configurations: one on Windows (pwsh) and the other on WSL (ubuntu). On Windows, everything works fine — I can install ...
0
votes
1
answer
73
views
Node JS curl GET error - 'schema-name' is not recognized as an internal or external command, operable program or batch file [closed]
I want to call curl with NodeJS with GET method. I want to pass authorization token and parameter. I've wrote my codes as below:
const url = 'https://external-url?table-name=LD_PRD&schema-name=...
0
votes
0
answers
48
views
curl_exec download fails if filename contains +sign [duplicate]
I am using following code to trigger download from browser on button click:
header("Content-Disposition: attachment; filename=".$_GET['name']);
$url = $_GET['name'];
$url= ...
0
votes
1
answer
82
views
Trying to get the message delivered to client, server is able to log the message
Server code is a socket accepting the request from curl and logging the byte info.
import socket
import selectors
import traceback
HOST = "0.0.0.0" # Listen on all interfaces
PORT = 8000 ...
2
votes
1
answer
121
views
Why am I getting a different HTTP response for a seemingly same request between curl, C# HttpClient Win10 and C# HttpClient Win11
I'm trying to download a webpage from a specific website (Bandcamp). I'm getting different results although the request seems the same:
On Windows 10, using a HttpClient in C#: I'm getting "...
0
votes
0
answers
69
views
Error 405: Moved Temporarily from Google Apps Script even though server still accepts the payload
Assume the following simple setup for sending telemetry to Google Sheets:
Curl -> Google Apps Script deployed as Web App -> Google Sheet -> Cell 1:1
Google Apps script is a simple doPost() ...
0
votes
1
answer
170
views
Curl POST request error: Unknown content type: application/json
SOLUTION: Got rid of the --header flag, added json= to the beginning of the data set.
I'm attempting to update some settings in a qBitTorrent Docker container via the WebUI's included API. I've ...
7
votes
0
answers
122
views
HTTP/2 file upload performance to Azure Front Door Standard significantly worse in browser JavaScript compared to cURL
I'm experiencing significant performance degradation when uploading files to Azure Blob Storage via Azure Front Door using browser JavaScript compared to cURL.
Environment
Files: 10 images, ~111MB ...
0
votes
0
answers
96
views
ubuntu curl: (3) URL using bad/illegal format or missing URL
Given the following script:
curl --interface wlan0 --connect-timeout 60 --max-time 1800 -X PUT -T /tmp/compress_log/20250922_utc.tar.gz "https://ota.eu.globe-groups.com/devicelogs/881e3272-4ab4-...
0
votes
0
answers
151
views
Set authentication type Bearer when curl with .netrc file
I'm trying to use .netrc file to authenticate access to a service, but I can't make it use Bearer authentication type!
I can access the service without .netrc with the following command:
curl --header ...
-2
votes
1
answer
109
views
Why does curl return a 400 Bad Request even though the same AJAX request works in the browser? [closed]
I’m trying to replicate a browser AJAX request using PHP’s curl, but the server always responds with HTTP 400 Bad Request.
Here’s my current code:
$headers = [
"Accept : application/json, ...
1
vote
1
answer
141
views
Docker build in WSL fails on curl download (curl: 56, unexpected eof)
I am trying to build a static FrankenPHP binary using their official Docker setup on Windows 10 with WSL 2 (Ubuntu). The build process, which uses docker buildx bake, fails at a step that downloads ...
1
vote
1
answer
85
views
Understanding CURLOPT_READFUNCTION (libcurl)
I'm using libCurl to send emails from a C++ program. I wrote the CURLOPT_READFUNCTION callback required by curl, passing a QDataStream from Qt as the userdata:
#include <QString>
#include <...
-3
votes
1
answer
235
views
Setting SESSION data in a CURL request
I have a PHP script to be used as an Ajax responder, which I want to remember a previous call. I thought that it should be able to remember using $_SESSION data.
I’ve simplified it down to a pair of ...
-1
votes
1
answer
105
views
How to integrate GST API (Chartered Info) with PHP using cURL? [closed]
I am trying to integrate the GSTR-1 B2B API from Chartered Info GST API Docs into PHP.
The API request format they provide looks like this:
using this documentation: https://gsthelp.charteredinfo.com/...
2
votes
2
answers
113
views
SSE (server side event) went CSE (Client Server Event) - loop sse.php working only with curl
Around 2017 I wrote a SSE (PHP) script and the JavaScript code. It worked fine with PHP-5 + HTTP/1 and the Firefox of that era.
The same code now does not work with Firefox-140 esr or latest Chrome ...
3
votes
1
answer
77
views
Flatten JSON array with multiple items - how to fit to a single csv cell? [duplicate]
I must get some data via API using curl and save it to a CSV file. Example JSON data set I'm getting when connected via API:
{
"id": 24598942,
"created_at": "2021-08-16T15:...
3
votes
1
answer
231
views
GitHub Personal Access Token returns 401 "Bad credentials" but CLI works perfectly - What's the difference?
Problem Summary
All Personal Access Tokens return 401 Bad credentials when using curl or direct API calls, but GitHub CLI authentication works perfectly. This affects ALL tokens including newly ...
1
vote
1
answer
1k
views
How to upload images via API on postimages.org
Can someone help me reverse engineer the api for postimages.org? They don't provide documentation for their api. I want to upload images through api but I can only find methods to upload anonymously ...
-3
votes
1
answer
127
views
Fill vector store with CURL does not work
I want to fill the vector memory of my project in Azure AI Foundry via a CURL command. I use the way described in the documentation
Uploading the file, which apparently has to be done before adding ...
0
votes
0
answers
79
views
FTPS Upload Freezes After Completion with libcurl in C++ (Error 425)
I’m using libcurl in C++ to upload a file via FTPS. The upload completes successfully (all bytes sent), but the connection freezes, and the server returns:
> 425 Data channel timed out due to not ...
3
votes
3
answers
200
views
CURL: how to correctly convert signed char[2] to uint16_t
I have a simple CURL callback for a C websocket that needs to identify the closecode, but it gives me weird values when I shift it. I don't understand signed char binary representation.
size_t ...
0
votes
2
answers
60
views
No output from xmlstarlet, yet XPATH exists inside web inspector
System Info
alinuxchap@libertus-desktop:~ $ uname -a
Linux libertus-desktop 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux
alinuxchap@libertus-desktop:~ $ ...
1
vote
0
answers
523
views
Getting blocked by cloudflare with curl_cffi
I am trying to scrape a page from metro using requests from curl_cffi library. When I pasting the url into POSTMAN, it works but when I paste the cURL, it returns 403. The next thing I did was try ...
1
vote
1
answer
88
views
Curl command and postman is working but JS fetch isn't
Can someone suggest on the below issue please? I am able to call following API using CURL and also using Postman but when I try to write some code, Python or JS to fetch the response, it fails. Not ...
1
vote
2
answers
87
views
Curl command executed concurrently in makefile
I am trying to download two files, A and B, using curl in a Makefile.
The download of A has to be finished to download B.
When I am executing the following command in zsh, the order is respected (B is ...
0
votes
0
answers
30
views
cannot add lifecycle rule to minio using curl
I always get: The request signature we calculated does not match the signature you provided. Check your key and signing method.
I am using this:
curl --location --request PUT 'http://172.22.24.93:9000/...
0
votes
1
answer
63
views
Linking a curl static lib using cmake at Clion Windows
I'm noob at C and cmake and experience difficulties with a lib linkage. I have the following cmake:
cmake_minimum_required(VERSION 3.10)
project(EC C)
set(CMAKE_C_STANDARD 11)
add_executable(EC main....
0
votes
1
answer
1k
views
llama.cpp server and curl requests for multimodal models
I have llama-server up and running on a VPS with Ubuntu 24.04. I can send curl requests from an external IP and get answers for text embedding for instance. Now I want to use multimodal models through ...
0
votes
2
answers
165
views
reCaptcha Enterprises "Permission denied for: recaptchaenterprise.assessments.create"
I'm setting up a reCaptcha for a client with an Enterprise Google Cloud account.
I used an API Key, which is the easiest based on my client files configuration.
Everything works well until I call the ...
0
votes
0
answers
52
views
OpenSearch PHP Client: 404 Error on Document Insertion in Production instance (Serverless)
Problem
I'm experiencing a 404 NotFoundHttpException when trying to insert documents into an OpenSearch products index using the opensearch-project/opensearch-php client in a Laravel application, but ...
0
votes
1
answer
61
views
Spotify Authorization Code Flow stopped working without any code change
I have a wordpress plugin that is working since this january,
It displays on a web page the title and author of the song currently playing on my spotify account. Suddenly a couple of days ago it ...
1
vote
1
answer
172
views
Can an ordinary, unprivileged user use socket option SO_BINDTODEVICE?
I'm looking into implementing a system that allows users who have a VPN connection configured on their local machine to choose which internet requests are sent through the VPN and which are not. I ...
0
votes
2
answers
56
views
Firefox web inspector XPATH function not working?
Objective
Isolate Wikidata query output
Command
curl https://query.wikidata.org/#SELECT%20DISTINCT%20%3Fitem%20%3FitemLabel%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%...
1
vote
2
answers
73
views
Executing curl command stand alone vs executing in a Python program
I am trying to create a tool to call an API, use a specific field from the response and then call one more API using that field as a parameter.
E.g. I call my organization's open API for get products ...
0
votes
1
answer
204
views
php cURL having issues with special characters in passwords
I'm encountering an issue with 2 separate API providers who are insisting this is a problem in our code. Maybe so, but I am not sure what else I need to do here.
Say a user has a password of abc%123. ...
2
votes
2
answers
109
views
Handle the carriage returns of curl ouput when piped
I'm trying to alter the output of the curl command. Let's say for the sake of this question that I want to move 4 spaces to the right said output. Nothing else about the content of the output is ...
0
votes
0
answers
38
views
can't find network functions in free5gc-compose
I am trying to do a project on network feature recognition within a 5G core. I cloned from Github the repository: https://github.com/free5gc/free5gc-compose: which uses free5gc for docker-compose: I ...
0
votes
2
answers
62
views
Trying to make shell script to run curl and insert username from command line argument
I am trying to make a shell script that will run a curl command, where a username, which is provided in a command line argument, is inserted into the curl command line.
The curl command is as follows:
...
1
vote
1
answer
49
views
PH cURL Request with AJAX works on URL but not on the response
I'm sending a value from a form to an ajax request which runs a cURL process on my website. I test the response back and it works perfectly. But when it goes back to AJAX, it gives a 400 error.
Ajax ...
2
votes
1
answer
167
views
how to send/receive binary data to an web application in python? [duplicate]
I am learning web development, I have some experience in python scripting. This time, I wanted to create an api in python, so review fast api docs. I have the following set up (example contrived for ...