poirot Posted August 21, 2006 Share Posted August 21, 2006 I need some help... I want to make a reasonably capable "PHP browser" with cookie/POST support.So far, I managed to do it with fsockopen(). But as you know, some hosting services will disable fsockopen or even allow_url_fopen, making life difficult.Is there any way around? I just want a general direction, maybe a function name...Thanks ;) Quote Link to comment Share on other sites More sharing options...
trq Posted August 21, 2006 Share Posted August 21, 2006 What exactly do you want to browse? Quote Link to comment Share on other sites More sharing options...
poirot Posted August 21, 2006 Author Share Posted August 21, 2006 I want it to simulate browser behavior, so it can visit sites and also I should be able to use POST and Cookies, and send headers (for example, User-Agent, Accept...) Quote Link to comment Share on other sites More sharing options...
ShogunWarrior Posted August 21, 2006 Share Posted August 21, 2006 do you mean a web proxy, maybe to avoid a content filter etc.? Quote Link to comment Share on other sites More sharing options...
poirot Posted August 22, 2006 Author Share Posted August 22, 2006 That is correct.I plan though to use it for remote retrieving, not for proxy... Quote Link to comment Share on other sites More sharing options...
ShogunWarrior Posted August 22, 2006 Share Posted August 22, 2006 Well then you need cURL.I know you put "no curl please" in the title but if you really want to do this then it's definitely the best, fastest option.Otherwise, [b]fopen[/b] or [b]file_get_contents[/b].As you said sometimes they're blocked and if you don't have cURL then there isn't really much else you can do, they're your options. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.