Re: Re: CURL
| From: | Jason Sheets | Date: | Tue, 05 Aug 2003 02:30:28 +0000 |
| Subject: | Re: Re: CURL | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158228@lists.php.net to get a copy of this message | ||
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" <confiq@programiranje.net> wrote in message news:oprterp3llu5fyf6@news.php.net...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 <celticfc@iol.ie> 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