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)
package com.xcerion.android.tutorials; import java.io.DataInputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.auth.AuthScope; import org.apache.http.auth.UsernamePasswordCredentials; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.params.HttpProtocolParams; import android.util.Log; import com.ximpleware.AutoPilot; import com.ximpleware.NavException; import com.ximpleware.ParseException; import com.ximpleware.VTDGen; import com.ximpleware.VTDNav; import com.ximpleware.XPathEvalException; import com.ximpleware.XPathParseException; public class BaxideTiny { // TODO: You need to edit these two lines (In the future we will make a login form and not use static data) private String username = ""; // Edit to Your username at icloud.com private String password = ""; // Edit to Your password associated with your icloud.com account public void login() { String soapAction = "login"; String soapBody = ""; byte[] loginDoc = callServer(soapAction, soapBody); String folderXMLId = getMyFolderXMLId(loginDoc); byte[] folderXML = getFolderXML(folderXMLId); // Make use of the folderXML... } public byte[] callServer(String soapAction, String body) { byte[] result = null; DefaultHttpClient httpclient = new DefaultHttpClient(); HttpProtocolParams.setUseExpectContinue(httpclient.getParams(), false); httpclient.getCredentialsProvider().setCredentials( new AuthScope("os.icloud.com", 80, null, "Digest"), new UsernamePasswordCredentials(username, password)); HttpPost httppost = new HttpPost("http://os.icloud.com/v1/"); httppost.setHeader("soapaction", soapAction); httppost.setHeader("Content-Type", "text/xml; charset=utf-8"); System.out.println("executing request" + httppost.getRequestLine()); final StringBuffer soap = new StringBuffer(); soap.append(""); soap.append("<"); soap.append(soapAction); soap.append(">"); soap.append(body); soap.append(""); try { HttpEntity entity = new StringEntity(soap.toString()); 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()); is.readFully(result); } } } catch(Exception E) { } httpclient.getConnectionManager().shutdown(); return result; } public String getMyFolderXMLId(byte[] loginResponse) { AutoPilot ap = new AutoPilot(); try { VTDGen vg = new VTDGen(); vg.setDoc(loginResponse, 0 , loginResponse.length); // Comment vg.parse(true); // set namespace awareness to true VTDNav vn = vg.getNav(); ap.bind(vn); ap.declareXPathNameSpace("SOAP-ENV","http://schemas.xmlsoap.org/soap/envelope/"); ap.declareXPathNameSpace("xcr","http://xcerion.com/xcRepository.xsd"); ap.selectXPath("/SOAP-ENV:Envelope/SOAP-ENV:Body/xcr:loginResponse/drives/drive[sysname = 'xios']/folderId"); } catch (ParseException e){ System.out.println(" XML file parsing error n"+e); Log.e("ParsingExc", e.toString()); } catch (XPathParseException e){ } return ap.evalXPathToString(); } public byte[] getFolderXML(String strFolderId) { StringBuffer bufBody = new StringBuffer(); bufBody.append(""); return callServer("getFolderXML", bufBody.toString()); } }