Accessing an htaccess password protected directory

2 replies
So I'm running this script in a protected folder and I need the full path

Code:
 $curl = curl_init();
    curl_setopt ($curl, CURLOPT_URL, "http://foo/my.php");
    curl_exec ($curl);
    curl_close ($curl);
foo is an htaccess protected directory and I get access denided

Say the username is user

password is blah

What do I add to this to reach the directory?

Thanks

Rick
#accessing #directory #htaccess #password #protected

Trending Topics