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

curl-and-php

Re: Sending hidden variables

From: tedd <tedd_at_sperling.com>
Date: Fri, 30 Dec 2005 20:55:17 -0500

Hi Kevin:

>Well, my HTTP protocol understanding is kind of old, but I believe
>that you can just send the "hidden" vars as you would any other
>var... In curl, this is done via the "-d" param

How do you combine a curl -d and a curl -u together?

The curl command needs to send user-id and password as well as hidden data.

Currently, I am using:

"curl -u " + userIdStr + ":" + pwStr + " --url " + url

which works to get into the protected application. But now, I need to
send it hidden data as well. Something like:

"curl -d " + "what=1" + url

but, with userid and password.

Any ideas?

tedd

-- 
--------------------------------------------------------------------------------
http://sperling.com/
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-12-31