curl-and-php
Re[6]: PHP binary CURL and HTTPS
Date: Thu, 7 Jun 2001 18:11:21 +0300
Hello Daniel,
Thursday, June 07, 2001, 5:30:15 PM, you wrote:
DS> On Thu, 7 Jun 2001, YAHOO!!! wrote:
>> exec("C:/PHP/curl -m 120 -d Login=login -d Passord=password
>> https://secure.server.com/login.asp -L", $return_message,$return_number);
>>
>> And I get the result as wrong Login or password. Login and password from
>> HTML form are accepted by server.
DS> You mean that when you fill them in with your browser it works?
DS> Then, start trying to identify how the browser's POST differs from yours:
DS> 1. Did you fill in user+password in the browser before the actual post? I.e
DS> do you get a 4XX error code in the HTTP headers back when you use curl?
DS> 2. Your POST line doesn't include "btnSubmit=Login" which may or may not be
DS> relevant. (the HTML <form> tag includes it)
DS> 3. Your browser uses a user-agent string that the remote server may use
DS> to detect "false" logins.
DS> If the -L means that curl follows a location, it may imply that several
DS> requests are performed and thus we can add:
DS> 4. You might get cookies back that need to be sent on subsequent requests,
DS> enable curl's cookie engine with -b.
DS> 5. You might need to set the referer string, try -e.
DS> 6. There are probably more details I haven't thought of right now.
DS> Welcome to give-me-your-best-guess hour!
OK. It seems to me We found what was wrong
I have had to include '-d btnSubmit=Login' too.
Now it works :))
Thanks !!!!
-- Best regards, YAHOO!!! mailto:vladkalmik_at_yahoo.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Curl-and-php mailing list Curl-and-php_at_lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/curl-and-phpReceived on 2001-06-07