PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I develop a console application what will connect to a webserver and get data from there. Console application run ondemand like a service. Webserver is configed Basic Authentication. I have username and password.
Does anyone know how can console application passes user/password to webserver?
Normally, I can connect to webserver using browser. It shows authentication dialog, inputs username/password here. But the console application can not do like that. Is there any way to send username/password to server for authenticating and then get needed data?