RE: [PHP] CURL de-bugging: So why am I not getting the results page on the target site?
| From: | Boyd, Todd M. | Date: | Wed, 02 Jul 2008 14:45:17 +0000 |
| Subject: | RE: [PHP] CURL de-bugging: So why am I not getting the results page on the target site? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276224@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Chris [mailto:dmagick@gmail.com]
> Sent: Tuesday, July 01, 2008 9:42 PM
> To: ioannes@btinternet.com
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] CURL de-bugging: So why am I not getting the
results
> page on the target site?
>
> ioannes wrote:
> > I didn't get any brave response on this, but given the other thread
> on
> > 'encription' I was wondering could anyone decrypt the __VIEWSTATE
> string
> > at the end of this message. It is part of the input page whose
> results
> > page I am trying to retrieve back onto my server for further php
> work.
> > I replicated the source from that input page onto a page on my
> server,
> > and when I click the submit button it correctly goes to the target
> > results page, on the other site though, however it did not work
> without
> > the whole of the string below. The experiment proved though that
> > without the __VIEWSTATE the results page will not return. So I am
> just
> > wondering, as I have not been able to repeat this using curl, what
> the
> > **** is included in that string. There's a challenge for anyone with
> > whatever resources it takes.
>
> echo base64_decode($view_state_string);
>
> viewstate in asp.net is like sessions in php (I believe, I could be
> completely wrong :P).
Ehrm... you're not *completely* wrong. ;) I do most of my programming at
work in ASP.NET/VB.NET, and I've come to understand that the VIEWSTATE
in an ASP.NET page is more or less for retaining form values and
client-side settings. IIS/ASP.NET still uses sessions--and in much the
same way as PHP.
Todd Boyd
Web Programmer