Re: authentication
| From: | Ivan Rodriguez | Date: | Wed, 28 Apr 2004 12:35:48 +0000 |
| Subject: | Re: authentication | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-48053@lists.php.net to get a copy of this message | ||
Disculpa, pero esto es una lista de PHP, no de Java, las autentificaciones
se pueden hacer de varias maneras en PHP, via Apache o via formulario web y
autentificacion contra una base de datos .. en PHP, tienes un capitulo
entero en www.php.net sobre la autentificacion con PHP asi que te animo a
leerl, y por ultimo, la lista es en castellano no en ingles, para eso tienes
php-general@lists.php.net
Un saludo
Iván Rodriguez Espada
_________________________
ALAPLAYA.COM
http://www.alaplaya.com
epplestun@alaplaya.com
----- Original Message -----
From: "Diana Castillo" <diana@hotelkey.com>
To: <php-es@lists.php.net>
Sent: Wednesday, April 28, 2004 11:23 AM
Subject: [PHP-ES] authentication
> I am making an xml connection , but first I need to authenticate myself,
> they sent me the java code, which follows, any idea how to do the same
thing
> with php?
> String userPwd = "<user>" + ":" + "<password>";
> String userPassword = Base64Converter.encode(userPwd.getBytes());
> uc = (HttpURLConnection) url.openConnection();
> Permission per = uc.getPermission();
> uc.setRequestProperty("Authorization", "Basic " + userPassword);
> uc.setRequestMethod("POST");
>
> --
> PHP Spanish Localization Talk Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>