package ;
import ;
import ;
import ;
import ;
import ;
import ;
import ;
/**
* @author admin
*
*/
public class App {
public static void main(String[] args) {
String url = "http:///query?type=shentong&postid=请更换为你的申通运单号&id=1&valicode=&temp=0.3015635129995644";
try {
(true);
HttpURLConnection http = (HttpURLConnection) (new URL(url).openConnection());
(true);
(true);
(true);
("GET");
("Connection", "keep-alive");
("X-Requested-With", "XMLHttpRequest");
("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.92 Safari/537.1 LBBROWSER");
("Accept", "*/*");
("Referer", "http:///");
("Accept-Language", "zh-CN,zh;q=0.8");
("Accept-Charset", "GBK,utf-8;q=0.7,*;q=0.3");
("Accept-Encoding", "gzip,deflate,sdch");
("response is : "+()+" "+());
String contentEncoding = ();
("response encoding is : "+contentEncoding);
InputStream in = null;
if("gzip".equalsIgnoreCase(contentEncoding)){
in = new GZIPInputStream(());
}else{
in = ();
}
ByteArrayOutputStream baos = new ByteArrayOutputStream();
int data = -1;
while((data = ())!=-1){
(data);
}
String resp = ("utf8");
(resp);
} catch (MalformedURLException e) {
();
} catch (IOException e) {
();
}
}
}