Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Basic Authentication question.
- Nuno Paquete
July 23, 2004, 11:40 pm
rate this thread
I've got Basic Authentication working almost fine, so I need to resolve a
I've got this code in my php scrip:
$fp = fsockopen("www.mydomain.com",80);
fputs($fp,"GET /downloads HTTP/1.0\r\n");
fputs($fp,"Authorization: Basic " . base64_encode("user:pass") . "\r\n\
This works almost fine.
I say almost because I can't stop showing the server response string from my
"HTTP/1.1 200 OK Date: Fri, 23 Jul 2004 17:37:40 GMT Server: Apache/1.3.31
(Unix) PHP/4.3.6 Connection: close Content-Type: text/html"
How can I stop showing this text from in my page?
- » design question - several related variables - in one database field or separate fields
- — Previous thread in » PHP Scripting Forum