Ok PHP Genii.. I need your help with this one.. stumped for days..
I have two different servers, configured 99% the same. On one server, curl POSTS with sessions, jumping to different pages , logging everything beautifully. The other server doesn't work and here is what I see..
(Its a bot which views and captures segments of webpages behind session controlled authenticiation)
On the working server (server1) CURL report shows:
- Connected to xxx.com (x.x.x.x) port 80
> POST /login.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
On the broken server (server2)
- Connected to xxx.com (x.x.x.x) port 80
> GET /login.php HTTP/1.1
Content-Type: text/html; etc etc
Both servers running the EXACT same CURL instructions, but the latter insists on switching to GET instead of POST, even when post is called for and get is turned off...
Is something controlling access to the cookie? I granted all permissions and the cookie does write to the specified location... Is it a curl configuration or lib dependency issue?
What you may need to know:
Server 1: fedora core, cpanel, curl 15.x.x
Server 2: centos, cpanel, curl 19.x.x
Let me add that curl works find with basic authentication user:pw on both servers
What you think and thanks in advance for your feedback... I am not bothering to post the curl commands because I know they work on one of the servers... But let me know if you think you need to see them..