|
Posted by Manuel Lemos on 10/12/18 11:38
Hello,
on 01/27/2006 12:43 PM Nathan said the following:
> But it doesn't work. Obviously without knowing the router's source code
> for its little internal webserver thingy it's hard to know where it's
> going wrong, so I was just wondering if you had any thoughts as to what
> sort of things may be stopping it. I suppose maybe it could have
> something to do with sessions or something - so is there a way to 'see'
> what's going on between Firefox and the web-server so I might find out
> how to spoof this via a PHP script? I thought it might have something to
> do with posting to a page which then has a refresh thing that posts to a
> second page, and because of the way it works in my script, it doesn't go
> to this second page, but I can't really tell if this is happening simply
> by looking in my browser.
>
> I'm this close to telling them it can't be done, but I thought I'd see if
> there's something obvious I'm missing, because I'm a bit new to this
> fsockopen business.
I think you are probably not collecting and sending back the cookies
sent by the server that may be used to identify an authenticated user.
It is not a big deal. You may want to try this HTTP client class that
uses the fsockopen function but it is well aware of the HTTP protocol in
order to act like a real browser. It can collect and send back any
cookies, emulate form submission, including file upload if necessary,
handle authentication, redirection, etc...
http://www.phpclasses.org/httpclient
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Navigation:
[Reply to this message]
|