I haven't tried it, so I don't know if -d doesn't work with -u, but if
that is the case, you could change your URL to this:
curl -d "what=what" http://user:[EMAIL PROTECTED]/myApp.php
Ray:
Bingo -- that worked !
Now I can send data to a password protected folder without having to
expose the
//www.mydomain.com/myApp.php";
HTH
Ray
> -------- Original Message
> Subject: RE: [PHP] A curl question
> From: tedd <[EMAIL PROTECTED]>
> Date: Mon, January 02, 2006 5:50 pm
> To: php-general@lists.php.net
>
> Ray:
>
> >I would suggest using the -d (or
Ray:
I would suggest using the -d (or --data) flag. That allows you to send
POST data.
example:
exec(curl -d "name=Rafael%20Sagula&phone=3320780"
http://www.where.com/guest.php)
Yes, I understand -d -- is there a way to use that AND to provide
userID and password?
Thanks.
tedd
For mo
On Mon, Jan 02, 2006 at 11:07:33AM -0500, tedd wrote:
Hi:
I've asked this question on the [EMAIL PROTECTED] list, but
replies were few and didn't address the problem. Whereas, I've seen
considerable discussion of curl on this list, so here goes.
I am writing a client-side application that
On Mon, Jan 02, 2006 at 11:07:33AM -0500, tedd wrote:
> Hi:
>
> I've asked this question on the [EMAIL PROTECTED] list, but
> replies were few and didn't address the problem. Whereas, I've seen
> considerable discussion of curl on this list, so here goes.
>
> I am writing a client-side applicat
I would suggest using the -d (or --data) flag. That allows you to send
POST data.
example:
exec(curl -d "name=Rafael%20Sagula&phone=3320780"
http://www.where.com/guest.php)
For more information, check the man page for cURL and search for POST
within that document. Or check out the PHP Manual f
6 matches
Mail list logo