http://uk.php.net/header should help you. BTW, you should address your replies to the list and not to individual ppl. Mikey > -----Original Message----- > From: Diana Castillo [mailto:diana@xxxxxxxxxxxx] > Sent: 17 February 2005 12:36 > To: frak@xxxxxxxxxxxxxx > Subject: Re: FOPEN > > how do I send headers with php? > ----- Original Message ----- > From: "Mikey" <frak@xxxxxxxxxxxxxx> > To: "'Diana Castillo'" <diana@xxxxxxxxxxxx> > Sent: Thursday, February 17, 2005 1:32 PM > Subject: RE: FOPEN > > > >> How can I read the contents of a web page that uses basic > >> authentication? > >> I want to use fopen() but dont know how to do this and also > >> send the username and password > > > > I don't know exactly what they are, but it should just be a case of > > sending > > the correct HTTP headers at the start of your request > > http://www.w3.org/Protocols/#Specs should give you the > information you > > need... > > > > HTH, > > > > Mikey > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php