> just use post to send your username/password to the servlet > > >Hi, > > > >Can anyone tellme how I can do a http request to a servlet >from a PHP?? > > > >I mean, I have a username and password which I want to >send in a string(variable) to a Servlet which authentifies >it and responses back in XML format... > > > >any suggestions??
Well that would suffice if he just wanted to display the raw XML in the broswer. However if he wanted to parse the XML he needs to open a socket on port 80 or use a http class. Regards jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]