Re: HTTP_Clients and Files - Part 2
| From: | Andrew Nagy | Date: | Mon, 15 Nov 2004 22:20:51 +0000 |
| Subject: | Re: HTTP_Clients and Files - Part 2 | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15550@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
For some reason, this site isn't using cookies for it's sessions, it's passing the id in the query string and through hidden fields. So are you saying that I need to parse through the resulting HTML to pull out the id from a link or something? What if their is not link on the page and it is just a form?How can I get a variable from the query string from one post() response and then send it to my next post()? Anyone have any experience with this?Yes, I have experience doing all sorts of crazy things with HTTP_Client. Usually sessions use cookies, which HTTP_Client handles for you. If it is indeed in a hidden field in the form, then you're going to have to parse out the value and set it yourself in your post request. I suggest using preg_match(). If you need regex help, post the relevant part of the form HTML and we can try to help.