I don't doubt that Seth _has_ had success using one technique and not another, but I would also like to know what kind of "state" he's talking about. Using the curl functions from inside PHP _should_ be equivalent to invoking curl(1) from the command-line. There may be some difference in default options, or perhaps the web UI tracks HTTP REFERER values...?
I'm afraid I don't know much about the m0n0wall GUI. -Adam > -----Original Message----- > From: Jostein Elvaker Haande [mailto:[email protected]] > Sent: Sunday, March 20, 2011 16:02 > To: [email protected] > Subject: Re: [pfSense Support] Problem with pfSense and curl > > 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?). > > -- > Yours sincerely Jostein Elvaker Haande > "A free society is a place where it is safe to be unpopular" > - Adlai Stevenson > > http://tolecnal.net -- tolecnal at tolecnal dot net > > ------------------------------------------------------------------- > -- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > Commercial support available - https://portal.pfsense.org --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] Commercial support available - https://portal.pfsense.org
