Category "curl"

CURL 403 Forbidden Error but working good in POST man request

Issue: Curl command not giving response with 200 status but If I send request from postman its working fine Here I have shared the CURL command. Any suggestion

how to use python variables in bash script inside python script

I am trying to use my python variables inside the bash script in the python script as below... import os import submodule URL="http://wmqa.blob.core.windows.net

Send response to 2 webhooks via CURL

We have a form on a website that currently uses Zapier Webhook to catch and push the information from the submitted form to our CRM. How can I add another webho

BASH | can not get redirected URL from URL that in CSV file by cURL

I need to get redirected URL from the origin URL that gets in a CSV file, but not as my expect, it only return origin URL, not redirected URL how can I resolve

Having trouble getting a curl command to work in R

I have a working curl command: curl -d '{"query":"query {\n accountBalances (first: 5) {\n nodes {\n id\n accountId\n

How to prevent libcurl(c++) form downloading binary data?

I am making a web crawler and I have the following code but the problem is that it also downloads binary data and I don't want that to happen. How do I prevent

Getting an HTTP response status code of 0 and empty message using C++ curl library libCPR

I'm using libcpr to send a GET request. cpr::Response r = cpr::Get( cpr::Url{target.str()}, cpr::Header{header}); For debugging, I

How to error handling curl and mysql in python subprocess.run()

I have python script which uses subprocess.run() getting dump file by curl and input dump file by mysql cmd = "curl {0}/{1} -o /tmp/{2}".format(dir_name,file_na

Error: Payfort Apple Pay service response error Failed to execute service?

I integrated Apple Pay service of Payfort using PHP but got error in response. Failed to execute service have applied all possible solutions including regenerat

How to post multiple images to mastodon using api with bash curl

I'm starting to learn to use rest api via bash curl by writing a simple mastodon bot. I can attach multiple images using curl https://example.com/api/v1/statuse

Git API call on Github account on government Organization

Trying to creae a remote repo regular github account with below command $ curl -u 'USER':'TOKEN' https://api.github.com/user/repos -d '{"name":"REPO"}' this wo

How to convert Curl SSL and auth request to Python code

I would like to convert my request written in Curl to Python. I'm ignoring ssl becouse this certificate is signed by me. I am not sure if I have correctly repla

How do I check all the redirects of a URL and get it as an array?

I'm making a site which checks all the URL redirects, just like wheregoes.com. This site doesn't provide any APIs. I have to get all redirects, then select the

cURL same server from a inside docker container

I saw a lot of similar problem but not exactly like mine... I have a classic architecture, A server with docker, a stack with Traefik to dispatch request, and f

cURL request with 'User-Agent' header works fine but doesnt work in node with axios/fetch/https

When i make a curl request to a website for webscraping with the header "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0" it wo

Curl using Nuget on Visual Studio 2022 doesn't work

I've been trying to get Curl to work with VS for weeks. I've read a ton of other tutorials, guides, installation instructions and other materials and just... No

How to use Zabbix's CurlHttpRequest() in JavaScript?

I am learning Zabbix. I would like to use CurlHttpRequest() and all these functions: I can't find the documentation (what's going on inside). I would like to r

Curl request to batch or windows command line [closed]

I would like to create a github repository using a command line/batch script or whatever on windows. This request works on https://reqbin.com/

When getting response from Curl request, I get the correct response, but when using response as var in next request, it returns 0 Why?

I am making a curl post request to create an order header... This returns and order number $orderno. When I echo the response, I am getting the order number as

http POST request: curl and postman both succeeded but resttemplate gives 400 Bad Request

I'm trying to convert a curl (also proved working in postman) query to java resttemplate: $ curl -X POST https://my.server/apiv2/login -k -H 'Accept: applicati