php_guy Posted August 20, 2010 Share Posted August 20, 2010 Hi guys, We have an independent billing system that we use to track payments. I want to write a PHP script to automatically post a payment to the billing system. I went into the billing system, hit "View source" and got the link + required variables that will allow me to simulate entering a payment. The problem is that it's asking me to enter my credentials everytime I try to simulate the payment. Is a module or something that will automatically enter my credentials in this HTTPS site? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/211307-auto-logging-into-an-https-site/ Share on other sites More sharing options...
sKunKbad Posted August 20, 2010 Share Posted August 20, 2010 What have you tried? cURL? Did you use the cookie jar? Quote Link to comment https://forums.phpfreaks.com/topic/211307-auto-logging-into-an-https-site/#findComment-1101766 Share on other sites More sharing options...
php_guy Posted August 20, 2010 Author Share Posted August 20, 2010 Hmm... Not sure what is meant by "cookie jar" Isn't there a way to send authentication through the headers? www-authenticate header? Is that the one? Quote Link to comment https://forums.phpfreaks.com/topic/211307-auto-logging-into-an-https-site/#findComment-1101775 Share on other sites More sharing options...
php_guy Posted August 20, 2010 Author Share Posted August 20, 2010 Basically, I have a username and password that it asks me to manually enter... I just want to have this automatically supplied. I'm relatively inexperienced in this area (e.g. haven't used external libraries like CURL either)... Is there a way in pure PHP/html to do it? Quote Link to comment https://forums.phpfreaks.com/topic/211307-auto-logging-into-an-https-site/#findComment-1101780 Share on other sites More sharing options...
sKunKbad Posted August 21, 2010 Share Posted August 21, 2010 look at this: http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/ Quote Link to comment https://forums.phpfreaks.com/topic/211307-auto-logging-into-an-https-site/#findComment-1101966 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.