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 /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

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 /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - javax.net.ssl.SSLException: Not trusted server certificate

javax.net.ssl.SSLException: Not trusted server certificate

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

javax.net.ssl.SSLException: Not trusted server certificate

Postby anurahim » Thu Nov 20, 2008 8:16 am

Hi,
While I am trying to post a web page using
DefaultHttpClient httpclient = new DefaultHttpClient();
CookieStore cookies = httpclient.getCookieStore();
HttpPost Postmethod = new HttpPost("https://url to post");// Submiting I agree page
ArrayList<BasicNameValuePair> nvpairs = new ArrayList();
vpairs.add(new BasicNameValuePair("name1", "value1"));
nvpairs.add(new BasicNameValuePair("name2", "value2"));
nvpairs.add(new BasicNameValuePair("name3", "value3"));
httpclient.setCookieStore(cookies);
UrlEncodedFormEntity p_entityIAgree = new UrlEncodedFormEntity(nvpairs);
Postmethod .setEntity(new UrlEncodedFormEntity(nvpairs, HTTP.UTF_8));
Postmethod .setEntity(p_entityIAgree);
ResponseHandler<String> IAgreeresponseHandler = new BasicResponseHandler();

String IAgreeSubmitresponseBody = httpclient.execute(Postmethod , IAgreeresponseHandler);



I am getting an error

11-20 12:36:22.589: WARN/System.err(366): javax.net.ssl.SSLException: Not trusted server certificate.




why is it caused ? how Can i solve it?
anur
anurahim
Junior Developer
Junior Developer
 
Posts: 24
Joined: Fri Jun 27, 2008 11:26 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 2 guests