cURL / Mailing Lists / curl-library / Single Mail


Re: How to use a bash script for http-post?

From: Dan Fandrich <>
Date: Wed, 25 May 2016 09:05:29 +0200

On Wed, May 25, 2016 at 05:37:47AM +0100, Kman Devnull wrote:
> Hi,
> My current curl code is in  C, and runs within a gcc linux env. My current code
> uses libcurl to do HTTP post.
> Now, I want to use a bash script instead of the below C code to carry out the
> same curl-http-post. 

This code does a GET, not a POST.

> How do I use bash script to use CURL for HTTP-POST? Can you point me to any
> examples, please?

Run "curl --manual" and search for POST.

>>> Dan
List admin:
Received on 2016-05-25