Input to PHP from Java

From: Date: Wed, 29 Sep 2004 14:30:02 +0000
Subject: Input to PHP from Java
Groups: php.general 
Request: Send a blank email to php-general+get-198194@lists.php.net to get a copy of this message
Hi, I have a page with SSL enables as below. https://email.website.com/usrfolder/one.php For this page, my customer is posting some XML data using a java output stream as below. ( pseudo code) URL url = new URL(_url); _httpsConnection= (HttpsURLConnection) url.openConnection(); _httpsConnection.setDoInput(true); _httpsConnection.setDoOutput(true); _httpsConnection.setUseCaches(false); _httpsConnection.setRequestProperty("Connection", "Keep-Alive"); // send transaction _outputStream = new DataOutputStream(new BufferedOutputStream(_httpsConnection.getOutputStream())); _outputStream.write(xmlString.getBytes()); _outputStream.flush(); _outputStream.close(); // receive response _inputStream = new DataInputStream(new BufferedInputStream(_httpsConnection.getInputStream())); BufferedReader in= new BufferedReader(new InputStreamReader(_inputStream)); String inputLine ; while ((inputLine = in.readLine()) != null){ rcvMsg = rcvMsg + inputLine; } in.close(); Now the issue for me is , i need to capture the data that is posted by the java code above in my php page. I am not getting the value in any of the standard variables. Can some one suggest me how i should read the data.. Thanks in advance, Regards, Rajesh B. --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage!

« previous php.general (#198194) next »