Re: Input to PHP from Java

From: Date: Wed, 29 Sep 2004 16:19:57 +0000
Subject: Re: Input to PHP from Java
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198202@lists.php.net to get a copy of this message
Rajesh Batchu wrote
        _outputStream.flush();
        _outputStream.close();
       // receive response
     _inputStream = new DataInputStream(new BufferedInputStream(_httpsConnection.getInputStream()));
 
OT: if you close the outputstream from URLConnection you will not be able to read the inputstream either.
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. If your java code is sending a standard http request it will show up either in the $_REQUEST variable. You might want to write to the log file using error_log() so that you can get debuging information that way in case the response is not picked up by the java app.
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.

« previous php.general (#198202) next »