cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Dan Fandrich <dan_at_coneharvesters.com>
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: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-25