In most cases you can make Curl submit the login form itself, in which case Curl would become logged in.
You can use Curl to get both GET and POST requests, the comments in the PHP manual are pretty decent.


Jason

John Ryan wrote:

i was more asking for the actual curl commands to do so, i suppose this
wasnt the rite ng to ask, but ive nowhere else! the docs on the curl site
are kinda crap

"Igor Konforti" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]


yeah, there is way to do it!
http://www.php.net/manual/en/function.curl-setopt.php


On Tue, 5 Aug 2003 01:04:42 +0100, John Ryan <[EMAIL PROTECTED]> wrote:




theres this site i want to use to execute a command by visting a url.
like
http://www.site.com/stuff.php?id=1234&message=hello_world

when i visit this in the browser when im logged into www.site.com, it
works
as im logged in with cookies or sessions or whatever. but obviosuly i
cant
be loged in from a php script, accessing the site using curl. is there
anyway i can login, curl take the cookie and then access this url??






--
Igor Konforti









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



Reply via email to