cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Aleksandar Lazic <al-curllibrary_at_none.at>
Date: Sat, 28 May 2016 10:38:27 +0200

Hi.

On 25-05-2016 06:37, wrote Kman Devnull:

> 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.
>
> How do I use bash script to use CURL for HTTP-POST? Can you point me to
> any examples, please?
>
> Many thanks.
>
> ====== My code looks similar to the below =============

[snipp]

This looks to me like

https://curl.haxx.se/libcurl/c/getinmemory.html

maybe you wanted to copy this ;-)

https://curl.haxx.se/libcurl/c/postinmemory.html

How about to take a look into this site.

https://curl.haxx.se/docs/httpscripting.html

I would also suggest to use the curl-users list for

curl command line tool

See https://curl.haxx.se/mail/ for the Description of the lists.

Best regards
Aleks
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-28