You are here: Re: [PHP] A curl question « PHP « IT news, forums, messages
Re: [PHP] A curl question

Posted by tedd on 01/03/06 02:50

>On Mon, Jan 02, 2006 at 11:07:33AM -0500, tedd wrote:
>> Hi:
>>
>> I've asked this question on the curl-and-php@cool.haxx.se 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:password@mydomain.com/
>
>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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация