authentication

From: Date: Wed, 28 Apr 2004 09:23:14 +0000
Subject: authentication
Groups: php.general.es 
Request: Send a blank email to general-es+get-48045@lists.php.net to get a copy of this message
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");

« previous php.general.es (#48045) next »