I know that you can give cURL a user/pass combination using the -u flag which is great. What I'm trying to do is get the credentials from a file on the filesystem and pass that in. For example
in auth.conf
id=q8374grf748
key=47w34kurgfuegurfgser7348gfeurfgyu
then I'd like to do the equivalent:
curl -u id:key http://example.com
You can Try this out :-
Even if you need to save cookie and try to access another page in site try this
first
Second