Hi,
I'm trying to display the results of a query on a URL using the snoopy class (Snoopy.class.inc). The reason being I need to set the referer and cookie values, I am sending to the target page.
Now the problem seems to be the page I am targeting is a page that logs the request, and searches on a value I am querying on and redirects to a page based on the query I am performing. This redirect seems to be causing problems as I'm not getting the output from this page displayed.
The first page returns a 200 http response, but the redirect is seemingly not being followed.
I've set:
$snoopy->$_redirectaddr = true;
$snoopy->$__redirectdepth = 2;
var $maxredirs = 5;
var $passcookies = true;
It could be something to do with the redirect being a relative and not a full path, but has anyone used the snoopy class for this kind of process before, and got it working with redirects? Or is there another way I can grab the redirect page?
This process works fine with wget.....but unfortunately I can't use shell_exec on this particular web server.
thanks
djrein.