Reply to Re: Obstacles using PHP to send POST to a remote site

Your name:

Reply:


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/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация