43,714 questions
-4
votes
0
answers
31
views
Why does curl intermittently return (56) after HTTP/1.1 200 OK from a UBUS JSON-RPC endpoint? [closed]
I'm working with an embedded Linux AP that exposes a UBUS JSON-RPC API (uhttpd/rpcd).
The login request is:
curl -v -k \
-H "Content-Type: application/json" \
-d '{"id":1,"...
0
votes
0
answers
49
views
Postman request misses target group but the curl command it used succeeds
I have an API endpoint in AWS that requires a Host header to match my Target Group. I have added that header to Postman but requests via the Postman app are falling through to my default Target Group. ...
Best practices
0
votes
4
replies
117
views
Best approach for Docker health checks in .NET containers without curl/wget?
have a .NET application running in Docker and need to configure container health checks.
Currently I see a few options:
Option 1
Install curl in the runtime image.
Use Docker HEALTHCHECK with a ...
1
vote
1
answer
153
views
cURL request error 400 trying to access langSearch API
SOLVED. The working code with all the error checking built in is:
function web_search_with_langsearch($query) {
$LANGSEARCH_KEY = "sk-nnnnnnnnnnnnnnnnnnnnnn";
$ENDPOINT = "https://api....
1
vote
1
answer
148
views
I write the same statement as curl, but I am not getting any response - why?
I am trying to retrieve time from the Bybit exchange. Curl works as expected, but my code in Rust works only with HTTP/1.0, HTTP/1.1 is getting complete silence and HTTP/2 is getting an error from ...
Advice
0
votes
3
replies
115
views
pyCurl: how to accurately measure the TTFB of an HTTP proxy? | Minimize/optimize data consumption
new to this. I'm looking to measure the TTFB of an http proxy to an endpoint, but having a hard time figuring out if my code is fetching those speeds accurately.
My goal is to maximize accuracy while ...
0
votes
1
answer
141
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
216
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
96
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
154
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
122
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
59
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
166
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
176
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
1
answer
117
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 ...