Here is j2me code snippet: byte[] postData="This is my test line! It works! Yipi-Yai-Yee!!!".getBytes();
try{ c = (HttpConnection)Connector.open(url_post); c.setRequestMethod(HttpConnection.POST); c.setRequestProperty( "User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0" ); c.setRequestProperty( "Content-Language", "en-US" ); c.setRequestProperty( "Content-Type", "text/plain"); c.setRequestProperty( "Connection", "close"); c.setRequestProperty( "Content-Disposition","attachment; name=\"userfile\"; filename=\"userfile_txt\""); c.setRequestProperty( "Content-Length", Integer.toString( postData.length ) ); os = c.openOutputStream(); os.write( postData ); os.close(); os = null; Here is PHP code snippet: //Here I see HTTP method, and response is POST : echo $_SERVER['REQUEST_METHOD']; : : // Show any post vars, but nothing shows - never! if(count($_POST)>0){ echo "POST".$new_line; print_r($_POST); echo $new_line; } : // try with upload files array if(count($_FILES)>0){ echo "FILES".$new_line; print_r($_FILES); echo $new_line; } That's it. Greetings, Ivan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php