cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Shell Script and Curl HELP!

From: Simon Yorkston <simon_at_ice.org>
Date: Fri, 31 Mar 2006 06:56:26 +1000

Read http://curl.haxx.se/docs/manpage.html
With special attention to the switch:

-d/--data <data>

(HTTP) Sends the specified data in a POST request to the HTTP server, in
a way that can emulate as if a user has filled in a HTML form and
pressed the submit button. Note that the data is sent exactly as
specified with no extra processing (with all newlines cut off). The data
is expected to be "url-encoded". This will cause curl to pass the data
to the server using the content-type application/x-www-form-urlencoded.
Compare to -F/--form <#-F--form>. If this option is used more than once
on the same command line, the data pieces specified will be merged
together with a separating &-letter. Thus, using '-d name=daniel -d
skill=lousy' would generate a post chunk that looks like
'name=daniel&skill=lousy'.

This is def. where you should start!!!!!!! !!!!!!!!! ?????????? !!!!!!!!!!!!

Renato Bonicio wrote:

> Hi all!!!!
>
> I need a simple example of how to post values using curl in Shell
> script!!!
>
> is there a way?!?!?!?!
>
> Thanks very much!!
>
>
> Renato / Brazil
>
>------------------------------------------------------------------------
>
>_______________________________________________
>http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-03-30