43,743 questions
0
votes
1
answer
97
views
How do I read an XSLX file with Curl in PHP? [duplicate]
I am trying to read an XSLX file with Curl in PHP. I can read text files just fine, but every time I try it with a binary file, it returns zero bytes, but does not appear to throw an error.
Here is ...
1
vote
1
answer
204
views
PHP Script not timing out while using curl_exec( )
I have a php shell script that runs at scheduled intervals via launchd. The script has a 2 minute php timeout, but I understand that time spend in curl_exec( ) doesn't count towards that. But I also ...
0
votes
0
answers
57
views
Upload document to dust (https://eu.dust.tt) using API
I am trying to upload a document to dust (https://eu.dust.tt) and cannot get it to work.
Here is what I have tried and the responses I get:
First I tried to list documents already uploaded. I used:
...
3
votes
1
answer
146
views
PHP - cURL library - curl_error() "Illegal port number in EPSV reply"
Here is my code (fake data of course):
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
$curl = curl_init();
$file = fopen("x.x", 'w');
curl_setopt($curl, CURLOPT_URL, &...
0
votes
2
answers
115
views
C# libcurl find which TLS version was negotiated
In my C# code, I'm using libcurl.dll and using CURLINFO_TLS_SSL_PTR = CURLINFO_PTR + 45 to determine which TLS version is being negotiated, I'm not sure if this constant is correct.
Is the code below ...
0
votes
1
answer
41
views
Using SuiteScript to achieve same as cURL POST with multipart/form-data (ZIP file sent as raw binary)
I’m looking for guidance from SuiteScript / JavaScript experts regarding a multipart/form-data file upload from NetSuite.
I have a Map/Reduce script that generates a ZIP file using N/compress.
This ...
0
votes
1
answer
125
views
Cant get Guzzle to disconnect cleanly: cURL error 28: Operation timed out after 10003 milliseconds
I have a process that was working as expected until I migrated my dev environment from WampServer to Laragon.
Now I am using Laragon v8.2.3 on Windows 10 Pro with:
php-8.3.16 [TS]
Nginx 1.27.3
...
0
votes
1
answer
166
views
curl error message "Object of class stdClass could not be converted to string" when using google computeRoute [closed]
I am using a curl request for my backend php class to access google's computeRoute.
when I run a curl request with a string it works (as below).
However dynamically generate the values with an array ...
1
vote
0
answers
93
views
cURL - incomplete response if stream
I am making cURL request using GuzzleHttp PHP library that returns me a huge list of data I later process. Because of the size and response time, I tried to optimize my side by using stream option ...
8
votes
7
answers
607
views
Extract selected data from multiple lines of text
Here is the output of my curl command (print headers only):
HTTP/1.1 200 OK
Server: CacheHTTPd v1.0
Date: Thu, 08 Jan 2026 19:21:11 +0000
Content-Type: application/octet-stream
Content-Length: ...
Tooling
0
votes
14
replies
6k
views
simple/fast way to transfer files from Linux to Windows
I have two computers. One with Arch Linux installation with any modern software. Another with 32bit Windows 7.
My goal is to transfer around 100GB of files from Linux to Windows. I have USB 3.0 to ...
1
vote
1
answer
67
views
In the header "Content-Type: application/json; charset=utf-8", do spaces after colon matter for express?
I'm currently learning Node and express and ran into this recently. If I put spaces after the colon in my header, the request body in node for POST shows up as undefined. But if I remove spaces, then ...
Advice
0
votes
0
replies
61
views
Get keycloak token with curl and 2fa
I have more totp apps registered for my kc account to login with totp. Private and work smartphone and a passwordstore... just to be able, to remove totp for a phone, in case it get lost.
And i want ...
1
vote
1
answer
277
views
Strange behaviour: FastAPI and Curl not working with "localhost" but ok with 127.0.0.1
When I run my first sample (the first official tutorial) using FastAPI, I notice something weird when testing with curl.
I launch the server with:
fastapi dev main.py
To test the endpoint, I execute:
...
1
vote
0
answers
241
views
Why does curl in WSL2 (Fedora and updated Arch) return "Recv failure: Connection reset by peer" on https://sh.rustup.rs?
Problem Description
I am trying to install Rust through rustup in WSL2, but in some
distributions any curl request to https://sh.rustup.rs fails with a
TLS error.
Command:
curl --proto '=https' --...