Link Details

Link 198448 thumbnail
User 410289 avatar

By CodeJustin
via electrictoolbox.com
Published: Jul 01 2009 / 10:32

Last week I looked at how send a username and password with PHP CURL. Using CURL is useful because you can examine the return information to see if the request was successful etc, but if your hosting provider doesn't have CURL for PHP enabled then you can still attempt to get the file by using file_get_contents and passing the authentication as part of the $context parameter.
  • 9
  • 2
  • 380
  • 130

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (2)