On 3/20/2011 5:01 PM, Jostein Elvaker Haande wrote: > On 20 March 2011 21:50, Seth Mos <[email protected]> wrote: >> I use curl from within PHP with cookies and can succesfully login to the ui >> with that. You need something that keeps state and cookies won't do. > > Now this might be a lack of knowledge from my side, but here goes: > HTTP in itself is a stateless protocol, and as such, to keep states > across a session one needed to implement something to keep track of > this state. And et' voila came the introduction of cookies, to store > session information. > > But from what you just said, you say that isn't the case, and to be > quite honest that confuses me. So if curl with cookies can't keep this > state information, what can (and why can curl within PHP do this, and > not curl from the command line?). >
You may find this enlightening: http://doc.pfsense.org/index.php/Remote_Config_Backup#Pulling_on_2.0 Jim --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] Commercial support available - https://portal.pfsense.org
