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 uses curl commands to
 communicate with a php application.

 At present I can send the php application logon, password, and variables
 via:

 > curl -u userID:password --url http://mydomain.com/myApp.php?what=what

 That works!

 However, I would like to send the variables hidden instead of
 attached to the url. So, what would the curl command be?

How do you mean hidden? You have to send the userid and pass
somehow either with the -u option or specifying them in the url:

  http://userID:[EMAIL PROTECTED]/

If you are worried about people seing the network traffic of the
username or passowrd then use https.

Curt.

Curt:

Thanks for your reply.

To answer you question, "hidden" means, as I said, data that is NOT attached to the url as found in the curl example I provided.

Please note that the userID and password are NOT the data that I speak of. Besides, I am not worried about the ID or password being shown, because it isn't. What I am concerned about -- however -- is sending data attached to the end of the url because I would like to hide that from the user. For example, typically input statements in forms provide hidden data -- but unfortunately, my client-side application cannot mimic a form.

So, let me state the problem again.

I have written a client-side application that communicates very well with a php application. The php application requires authorization and the curl command I use to provide this authorization with subsequent data is as follows:

curl -u userID:password --url http://mydomain.com/myApp.php?what=what

Now, what I am asking is -- is there a curl command that will send both id:password AND data without attaching data to the end of the url string? Is there such a critter?

Thanks,

tedd

PS: Please don't tell me to use a php-command or php-function because this is for a client side application that can only use curl commands to communicate with a php application.

--
--------------------------------------------------------------------------------
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to