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 void go(Map variables){ MyEventHandler myEvH = new MyEventHandler(this); android.net.http.RequestQueue rQueue = new RequestQueue(this); Map headers = new HashMap(); headers.put("Content-Type", "application/x-www-form-urlencoded"); String variablesURL; if(variables != null && variables.size() > 0){ try { StringBuilder b = new StringBuilder(); Set keys = variables.keySet(); // Iterate over each variable you want and append it to our variablesURL variable for(Iterator i = keys.iterator();;){ String key = i.next(); b.append(key); b.append("="); b.append(URLEncoder.encode(variables.get(key), "UTF-8")); // Minor speed optimization so that i.hasNext() is only called once (instead of in the for loop). if(i.hasNext()){ b.append("&"); } else { break; } } variablesURL = b.toString(); } catch (UnsupportedEncodingException e) { Log.e("HTTP_Request", "Unsupported Encoding Exception"); return; } } else { variablesURL = ""; } byte[] POSTbytes = variablesURL.getBytes(); ByteArrayInputStream baos = new ByteArrayInputStream(POSTbytes); rQueue.queueRequest("http://www.zinsure.net/zinsure/JSONServlet", "POST", headers, myEvH, baos, POSTbytes.length, false); } private class MyEventHandler implements EventHandler { private static final int RANDOM_ID = 0x1337; private String DEBUG_TAG = null; ByteArrayBuffer baf = new ByteArrayBuffer(20); private Activity myActivity; MyEventHandler(Activity activity) { this.myActivity = activity; } public void data(byte[] bytes, int len) { baf.append(bytes, 0, len); } public void endData() { String text = new String(baf.toByteArray()); myShowNotificationAndLog("Data loaded: \n" + text); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } } public void status(int arg0, int arg1, int arg2, String s) { myShowNotificationAndLog("status [" + s + "]"); } public void error(int i, String s) { this.myShowNotificationAndLog("error [" + s + "]"); } public void handleSslErrorRequest(int arg0, String arg1, SslCertificate arg2) { } public void headers(Iterator arg0) { } public void headers(Headers arg0) { } private void myShowNotificationAndLog(String msg) { Log.d(DEBUG_TAG, msg); } public void certificate(SslCertificate arg0) { // TODO Auto-generated method stub } public void handleSslErrorRequest(SslError arg0) { // TODO Auto-generated method stub } }