Skip to content

Tag: curl

Convert curl request into http request?

I am trying to convert the curl request below into an HTTP request for the postman tool. The postman tool might not really matter in this question. Please tell me how I can convert curl to http. What I tried/learned: – Set headers content-type: json/application, X-apiKey from curl docs, -d option means …

Download older curl rpm’s [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Closed 6 years ago. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-top…

Linux grep command to find the value of key from json

I have a JSON output that contains a list of objects stored in a variable.(I may not be phrasing that right) Output of a curl command: will post in comment as I am unable to post here I want to grep the value at this position “ad6743fae9c54748b8644564c691ba58” shown in the output, which changes ev…

Curl returned ststus 6 (DNS name bad address error)

I am unable to resolve host names when one(3g-cell) of my two interfaces is turned on. One interface is WAN(Ethernet), while the other is 3g-Cell. When WAN is turned off, I tried to do manual curl request and I was able to do it using 3g-cell interface, but was unable to do that using hostname. (same happened…

Cron every minute to trigger url via CURL

I want to set a CRON task to trigger an URL every minutes (via CURL). That seems pretty simple, I searched and wrote this : I added that to the crontab -e and saved. But it seems that the url is not triggered. Don’t understand why, everything seems correct? Can you help me please? Thx. Answer Your cron …

cURL empty request data if https connection

I try to send the file via POST. Before that i used http connection and everything worked. But now var_dump($_REQUEST); in my php-file returns an empty array. This my curl log: $ curl -X POST -F “id=1” -F “file=@/tmp/file.txt” https://MY_DOMAIN/save_file.php -v Hostname was NOT found i…

R packages: RCurl and curl packages install failure on Linux

I hope you can help with this issue I have come across whilst installing RCurl and curl packages for R. Answer That looks like that you have different versions of libcurl. One approch could be the following one (for your console): Then you can use ldd libcurl.so to find all dependencies and shared libraries t…

Image upload using curl

I want to upload image to remote site using curl cli version, i browse several pages here, but not able to solve my problem. I log http header in firefox while uploading image: Answer The basic curlsyntax would be curl -F “image=@/yourPath/yourImageFile.jpg” ‘https://www.site.xxx/upload_pr…

CURLpp, segmentation fault

Ubuntu 15.04, CLion, LibCurl, curl version – 7.38.00. When i’m compiling this code: there are no errors or warnings. But, when i’m running the executable file, incomes the error: ./a.out: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/lib/x86_64-linux-gnu/lib…