Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP Authentication through fopen

Status
Not open for further replies.

Niclov

Programmer
Jun 28, 2001
45
0
0
CA
Hey all,
I'm trying to read a remote file into php using the fopen command. The problem is that the file sits on a site that needs http authentication in order to access it. How would I pass the username and password info to the page with fopen, or is there another way? FTP and telnet are both disabled

Thanks,
Nic
 
No, but I can if it's neccisary. That the only workaround?
 
No, but it would be the easiest if you already had it available.

But maybe you don't need it at all.

According to performing fopen (" will work, so long as the site requires Basic authentication.

I've never done Digest authentication, so I won't be of much help there. And if the site is on IIS and requires NTLM authentication, I don't even know where to start.
Want the best answers? Ask the best questions: TANSTAAFL!
 
Thanks, I had looked though the manual, but must have missed that section. Works fine now :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top