Skip to content
Advertisement

Tag: curl

Abuse cURL to communicate with Redis

I want to send a PING to Redis to check if the connection is working, now I could just install redis-cli, but I don’t want to and curl is already there. So how can I abuse curl to do that? Basically I need to turn off what’s send here: I was able to get rid of the User-Agent altogether by

Specify output names on multiple files with curl using ranges

I am trying to download a few hundred URL’s and specify the output name for each, the only difference is an ID in the URL, such as ..something/1/something.., ..something/3/something.., ..something/4/something.. etc. I can use -o filename.zip but it will overwrite for each of the range of files, I am currently using: How can I output as this:? file1.zip, file3.zip, file4.zip,

Extract section of xml from result of curl command on Linux

I am issuing the following command: Which returns xml that looks similar to this: What is the easiest way to extract an xml element from the response, e.g. the element “true”? Note, I want the complete opening tag, content, and closing tag (and the content may also be empty. Thanks Answer Would xmllint be an option for you as well?

C strip html between

How can i strip the HTML from document between and including the <…> tags in a HTML document using C? My current program uses curl to get the contents of the webpage and puts it into a text file, it then reads from the text file and removes the <>, but i am unsure of how to remove everything between

cURL Simple File Upload – 417 Expectation Failed

I have a problem with a simple file upload post with cURL… I did it so many times but in this case I always get “417 Expectation Failed” from server. When I try to post with my browser it works 100% but with cURL not. That’s my configuration: My simple test form that works: here the image_upload.php: my cURL script

Advertisement