Tag: android volley

Volley android“javax.net.ssl.SSLHandshakeException:握手失败”

嗨,我正在使用排球库重buildAPI调用 这是我的testing代码发送XML数据和接收XML响应(我只需要成功地接收string格式的响应) String url ="https://prdesb1.singpost.com/ma/FilterOverseasPostalInfo"; final String payload = "<OverseasPostalInfoDetailsRequest xmlns=\"http://singpost.com/paw/ns\"><Country>AFAFG</Country><Weight>100</Weight><DeliveryServiceName></DeliveryServiceName><ItemType></ItemType><PriceRange>999</PriceRange><DeliveryTimeRange>999</DeliveryTimeRange></OverseasPostalInfoDetailsRequest>\n"; RequestQueue mRequestQueue; // Instantiate the cache Cache cache = new DiskBasedCache(getCacheDir(), 1024 * 1024); // 1MB cap // Set up the network to use HttpURLConnection as the HTTP client. Network network = new BasicNetwork(new HurlStack()); // Instantiate the RequestQueue with the cache and network. […]