![]() | | ||||||||
| | #2 |
| HyperActive Warrior War Room Member Join Date: May 2006 Location: Raleigh, NC
Posts: 242
Thanks: 17
Thanked 37 Times in 31 Posts
|
Have a look at Snoopy for PHP - Snoopy | Get Snoopy at SourceForge.net Also, the Zend HTTP Client (in the Zend Framework) might fit the bill too. |
|
Michael Kimsal http://heywords.com/srv - take our 2 minute survey | |
| | |
| | #5 |
| HyperActive Warrior War Room Member Join Date: May 2006 Location: Raleigh, NC
Posts: 242
Thanks: 17
Thanked 37 Times in 31 Posts
| |
|
Michael Kimsal http://heywords.com/srv - take our 2 minute survey | |
| | |
| | #6 |
| HyperActive Warrior War Room Member Join Date: May 2006 Location: Raleigh, NC
Posts: 242
Thanks: 17
Thanked 37 Times in 31 Posts
| Snoopy not doing it for you? I'm out of ideas at the moment - my needs don't normally go much beyond file_get_contents("http://whatever.com") You *can* get fancy and put header and user agent stuff and cookies and all that in your file functions (fopen, fputs, fgets, etc) by creating contexts and passing them as parameters to the file streams. It's a bit advanced, and (imo) not well documented with tutorials, but that might be a direction to go in. Good luck. |
|
Michael Kimsal http://heywords.com/srv - take our 2 minute survey | |
| | |
| | #7 |
| Gold Nuggets Producer War Room Member |
I need to do cookie management, form submission, etc etc etc... Anything and everything to automate websites. I think snoopy will do it for me, yes. Not sure yet. I want a few other alternatives so I can synthesize |
| | |
| | #8 |
| Selling Online Since 1998 War Room Member Join Date: Oct 2009 Location: Orange County, CA
Posts: 17
Thanks: 0
Thanked 2 Times in 1 Post
|
It's not as high-level as WWW::Mechanize or Snoopy, but I generally turn to cURL (PHP: cURL - Manual) for this type of interaction with web pages. It can handle POSTing (Execute a HTTP POST Using PHP CURL) and cookies (PHP cURL Cookies Example) |
| How we sell content, subscriptions and memberships - Lessons learned and money made: Membercon.com | |
| | |
![]() |
|
| Tags |
| equivalent, perl, php, wwwmechanize |
| Thread Tools | |
| |
![]() |