surfllang Posted April 4, 2009 Share Posted April 4, 2009 I need to get an image from a remote server. I know this is easy to do with fopen / curl if they are installed on my server, however the server that I wish to get the image from is protected with HTTP basic authentication. Is there a way to send the username and password in the header of the request? Any help would be appreciated, I have searched around for a solution, and cannot find one Cheers Quote Link to comment https://forums.phpfreaks.com/topic/152512-php-to-get-image-from-remote-server-with-authentication/ Share on other sites More sharing options...
Daniel0 Posted April 4, 2009 Share Posted April 4, 2009 Using curl, set CURLOPT_PROXYUSERPWD in the format username:password. Quote Link to comment https://forums.phpfreaks.com/topic/152512-php-to-get-image-from-remote-server-with-authentication/#findComment-801046 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.