Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public byte[] callServer(String soapAction, String body) { byte[] result = null; DefaultHttpClient httpclient = new DefaultHttpClient(); HttpProtocolParams.setUseExpectContinue(httpclient.getParams(), false); // Comment: 1 httpclient.getCredentialsProvider().setCredentials( new AuthScope("os.icloud.com", 80, null, "Digest"), new UsernamePasswordCredentials(username, password)); // Comment: 2, 3 HttpPost httppost = new HttpPost("http://os.icloud.com/v1/"); // Comment: 3 httppost.setHeader("soapaction", soapAction); httppost.setHeader("Content-Type", "text/xml; charset=utf-8"); final StringBuffer soap = new StringBuffer(); // Comment: 4 soap.append(""); soap.append("<"); soap.append(soapAction); soap.append(">"); soap.append(body); soap.append(""); try { HttpEntity entity = new StringEntity(soap.toString()); // Comment: 5 httppost.setEntity(entity); HttpResponse response = httpclient.execute(httppost); HttpEntity r_entity = response.getEntity(); if( r_entity != null ) { result = new byte[(int) r_entity.getContentLength()]; if(r_entity.isStreaming()) { DataInputStream is = new DataInputStream(r_entity.getContent()); // Comment: 6 is.readFully(result); } } } catch(Exception E) { // Do something, I won't discuss error handling in this tutorial } httpclient.getConnectionManager().shutdown(); return result; }