solved
| From: | :B nerdy | Date: | Sun, 22 Sep 2002 23:10:09 +0000 |
| Subject: | solved | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117203@lists.php.net to get a copy of this message | ||
its cool. ive solved it..
there is an option in php curl to save the headers. i just feed that back
out. and it implements the cookies
cheers
":B Nerdy" <thoa0025@mail.usyd.edu.au> wrote in message
news:20020922154833.55642.qmail@pb1.pair.com...
> i can do what i need on a command line with curl. but how would i do it in
> php & curl?
>
> this is my curl commands
> curl -D hc -d "login=xxxxxx&password=xxxxxx&TYPE=login"
> http://someserver.com/script/
> curl -b hc -d "sendmsg=1&min=xxxxxxxx&message=test"
> http://someserver.com/msgscript/
>
> so really want i need is how do i specify with curl in php HOW TO RECORD
> cookies?
> and then how to RELAY them back..
>
> cheers.
>
> ":B Nerdy" <thoa0025@mail.usyd.edu.au> wrote in message
> news:20020922145734.22714.qmail@pb1.pair.com...
> > i wish to POST submit to a login form on another server and then after
> that
> > POST some more information on the resulting page.
> >
> > the thing is, after the first login, the website sends me a cookie. it
> > probably holds the session id and or authentication information. how
will
> > can i relay this back to the page so i can view the resulting page
without
> > being kicked out because of no cookie??
> >
> > ive already used curl and am able to post things to scripts. but this
> cookie
> > problem i dont know how to get around.
> >
> > any idea?
> > cheers
> >
> >
> >
>
>