curl-and-php
Re: Sending hidden variables
Date: Sat, 31 Dec 2005 09:19:51 -0500
KC:
>It actually sounds like you're six steps down the road;
>Have you tried this;
>
>"curl -u " + userIdStr + ":" + pwStr + " --url " + url + "?what=1"
Yes, in my first post, I have that identical code --
url = "http://" + domain + path + "?what=" + what
cmdStr = "curl -u " + userIDStr + ":" + pwStr + " --url " + url
-- with explanation of what it does and what I would like to do:
>I don't think you want to use "-d" because that will force an HTTP
>POST- and I thought you were adamant about forcing an HTTP GET-
>that could cause the web server you're trying to communicate with to
>get confused.
No, I'm not refusing to change my mind (i.e., adamant), I simply am
asking if there is a way to send hidden data to a php application
that requires a long-on.
The application first requires authorization -- but, I don't want the
subsequent data sent to it to be viewed by the user. I was wondering
if there was a single command that would allow that?
Perhaps, I need to do it in two parts -- first, get the authorization
and then send the data. I'll try that unless you have a better idea.
Thanks.
tedd
-- -------------------------------------------------------------------------------- http://sperling.com/ _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2005-12-31