您的位置:首页 > 理论基础 > 计算机网络

httpclient GET 得到的log, 以及如何解析出有用的不带加密的网站返回数据

2016-09-26 22:52 706 查看
使用HttpClient4.5.2去GET一个网站的数据,得到了一堆加密后的数据。得到了如何解析出有用的不带加密的网站返回数据?这个花了不少的时间搜索和研究。罗列如下:

设置Header里面的加密(httpget.addHeader("Accept-Encoding", "gzip,deflate");)。如何设置干脆成不加密传输,还没有解决,待进一步研究。

关键是使用EntityUtils.toString(entity3)来把entity给变成字符串才是对的。其他的方法,不能得出正确答案,只能得到一些类似:
org.apache.http.client.entity.GzipDecompressingEntity@129a250c:的返回。

具体相关代码如下所示:

HttpGet httpget = new HttpGet("http://utilitytunnel.ewei.com/api/v1/engineers/16317/tickets.json?_count=0");

      

httpget.addHeader("Content-Type", "application/json;charset=UTF-8");
httpget.addHeader("Accept-Encoding", "gzip,deflate");
httpget.setHeader("Accept", "application/json");

httpget.addHeader("_app_key", appKey);
httpget.addHeader("_timestamp", timestampString);
httpget.addHeader("_sign", sign);

// httpget.addHeader("searchKey", "齐晓东");

System.out.println("GET="+httpget.toString());

Header headers[] = httpget.getAllHeaders();
for (Header header:headers){
System.out.println(header.getName()+" "+header.getValue());
}

CloseableHttpResponse response1 = httpclient.execute(httpget);

HttpEntity entity3 = response1.getEntity();

System.out.println("----------------------------------------------get_respone1_ContentType="+entity3.getContentType());
System.out.println("----------------------------------------------get_respone1_ContentLength="+entity3.getContentLength());
System.out.println("VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVget_respone1_String="+EntityUtils.toString(entity3));


没能得到正确解析时的控制台log内容如下:

</pre></p><p></p><p>没能得到正确解析时的控制台log内容如下:</p><p><pre class="plain" name="code" snippet_file_name="blog_20160926_2_3861588" code_snippet_id="1902093">doView 里面 pointName检测点名称:null

timestampString=1474881335410

sign=a1fd47d6afb404251c1b5bea2ceeedc9
T_requesterString={"id":247502}
T_serviceDeskString={"id":1}
T_engineerString={"id":1}
17:15:35.417 [http-bio-8080-exec-90] DEBUG o.a.h.c.protocol.RequestAddCookies - CookieSpec selected: best-match
17:15:35.417 [http-bio-8080-exec-90] DEBUG o.a.h.c.protocol.RequestAuthCache - Auth cache not set in the context
17:15:35.417 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://utilitytunnel.ewei.com:80][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20]
17:15:35.417 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection leased: [id: 1][route: {}->http://utilitytunnel.ewei.com:80][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20]
17:15:35.417 [http-bio-8080-exec-90] DEBUG o.a.h.impl.execchain.MainClientExec - Opening connection {}->http://utilitytunnel.ewei.com:80
17:15:35.422 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.HttpClientConnectionOperator - Connecting to utilitytunnel.ewei.com/121.41.76.156:80
17:15:35.532 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.HttpClientConnectionOperator - Connection established 192.168.43.216:62400<->121.41.76.156:80
17:15:35.533 [http-bio-8080-exec-90] DEBUG o.a.h.impl.execchain.MainClientExec - Executing request GET /api/v1/customers.json HTTP/1.1
17:15:35.533 [http-bio-8080-exec-90] DEBUG o.a.h.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
17:15:35.533 [http-bio-8080-exec-90] DEBUG o.a.h.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
17:15:35.533 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> GET /api/v1/customers.json HTTP/1.1
17:15:35.533 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> Content-Type: application/json;charset=UTF-8
17:15:35.534 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> Accept: application/json
17:15:35.534 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> _app_key: NjQx
17:15:35.534 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> _timestamp: 1474881335410
17:15:35.534 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> _sign: a1fd47d6afb404251c1b5bea2ceeedc9
17:15:35.534 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> Host: utilitytunnel.ewei.com
17:15:35.534 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> Connection: Keep-Alive
17:15:35.534 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> User-Agent: Apache-HttpClient/4.3.5 (java 1.5)
17:15:35.534 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> Accept-Encoding: gzip,deflate
17:15:35.535 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "GET /api/v1/customers.json HTTP/1.1[\r][\n]"
17:15:35.535 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Type: application/json;charset=UTF-8[\r][\n]"
17:15:35.535 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "Accept: application/json[\r][\n]"
17:15:35.535 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "_app_key: NjQx[\r][\n]"
17:15:35.535 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "_timestamp: 1474881335410[\r][\n]"
17:15:35.535 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "_sign: a1fd47d6afb404251c1b5bea2ceeedc9[\r][\n]"
17:15:35.535 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "Host: utilitytunnel.ewei.com[\r][\n]"
17:15:35.535 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
17:15:35.536 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "User-Agent: Apache-HttpClient/4.3.5 (java 1.5)[\r][\n]"
17:15:35.536 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
17:15:35.536 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "[\r][\n]"
17:15:35.727 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "HTTP/1.1 200 OK[\r][\n]"
17:15:35.728 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Server: nginx/1.7.11[\r][\n]"
17:15:35.728 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Date: Mon, 26 Sep 2016 09:15:35 GMT[\r][\n]"
17:15:35.728 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Type: application/json;charset=UTF-8[\r][\n]"
17:15:35.728 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Transfer-Encoding: chunked[\r][\n]"
17:15:35.728 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Connection: keep-alive[\r][\n]"
17:15:35.728 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Vary: Accept-Encoding[\r][\n]"
17:15:35.728 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Server-Info: ServerName=utilitytunnel.ewei.com, ServerPort=80, HostName=saas3[\r][\n]"
17:15:35.728 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Encoding: gzip[\r][\n]"
17:15:35.728 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]"
17:15:35.728 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "165[\r][\n]"
17:15:35.728 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x3][0x85][0x92][0xcd]N[0xc2]@[0x14][0x85]_[0x85][0xcc][0xba][0x98][0x16]DBW[0x12][0x82][0x86][0x4][0xc5][0x0][0xba][0xd0][0x98][0xe6][0xd2]^[0xca][0xc4][0xe9]L3s[0x8b]&[\r]O[0xe1][0xc6][0x7]q[0xe7][0xfb][0xe8]kx[0x87]?7FW[0x9d][0xe6][0x9c][0xef][0x9e]s[0xa7][0xad][0x85]EW)[0x12]q-[0x92][0xd4]T[0x9a]OQ [0xd2][0xca][0x91])[0xd0]:[0x11]?[0xd4][0xc7][0xb7][0xc1][0xf6]y!Qe^x[0xc]DUf@[0x98][0xf5][0x99][0x12][0xad]0:k[0x86][0xad]f[0xab][0xd7][0x88]N[0xe3][0xb0][0x13]G[0xa1][0x8][0x84][0x2]Gc[0x93]K[0xfd][0x97][0xc7][0xeb][0x83]]x[0x18][0x8],@*6[[0xb3]0t[0x8e][0xcf](ORS[0xb0]o[\r]Jf"&[!G;[0xb4][0x97][0xd6]T[0xa5][0x88]u[0xa5]T [0xb4]L[0x9f]4[0x14][0xc8][0xe4][0xe7][0xdb][0xeb][0xd7][0xc7][0xfb][0xd4][0xf3][0x8c][0xb9][0x15]Xdn[0x9][0xca]1X[0xae][0x8c][0xf6]&V[0xf0][0x85][0xd0]jP[0xa3][0xec]8[0xc4][0x10][0xba][0x9d][0xb8]F+[0x97][0x12][0x8f][0x81][0x85]YH[0x85]7?4[0xf]"s[0x0]S[0x8b][0xff][0xdc][0x84][0xd4][0x84][0xb9][0x5][0xde][0xac][0xcd]K[0xfe][0xda][0xd4]o[0xd7][0xe9][0x86][0xbd].[0x97][0x96][0xb9][0x6][0xaa][0xec]>[0x8b]d[0x81][0xf7][0xbb][0xe4][0xc1]Jjh[0xcc][0x8]t[0x6]6k[0xcc]Y[0xd9][0xde]a[\n]"
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "[0xca][0xcb][0xa8][0x93][0xdb][0x99]' [0xdf]$k[0xbc]P[0x1f]"[0xa7][0x93][0xf1]0[0xb9][0xee]_[\r][0x93][0xbb][0xd1]l4[0x9f]L[0xf7][0xc1][0xed][0xcd][0x86][0xcd][0x9][0x19][0xf2][0x1d]#[0xfe][0xb][0x92][0x12]r&[0xa2][\r][0xd7]!.[0xc3][0xf3][0xc2][0xcd]7[0xd6]L|!2[0x2][0x0][0x0][\r][\n]"
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "0[\r][\n]"
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]"
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << HTTP/1.1 200 OK
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Server: nginx/1.7.11
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Date: Mon, 26 Sep 2016 09:15:35 GMT
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Type: application/json;charset=UTF-8
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Transfer-Encoding: chunked
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Connection: keep-alive
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Vary: Accept-Encoding
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Server-Info: ServerName=utilitytunnel.ewei.com, ServerPort=80, HostName=saas3
17:15:35.729 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Encoding: gzip
17:15:35.730 [http-bio-8080-exec-90] DEBUG o.a.h.impl.execchain.MainClientExec - Connection can be kept alive indefinitely
----------------------------------------------get_respone1_entityString=org.apache.http.client.entity.GzipDecompressingEntity@3ddf5a30
17:15:35.730 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection [id: 1][route: {}->http://utilitytunnel.ewei.com:80] can be kept alive indefinitely
17:15:35.730 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection released: [id: 1][route: {}->http://utilitytunnel.ewei.com:80][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20]
entityString=subject=Create+Ticket+by+java+program&description=Description+from+Java+program&status=new&requester=%7B%22id%22%3A247502%7D&serviceDesk=%7B%22id%22%3A1%7D&engineer=%7B%22id%22%3A1%7D
entityStringby_nvps=[subject=Create Ticket by java program, description=Description from Java program, status=new, requester={"id":247502}, serviceDesk={"id":1}, engineer={"id":1}]
17:15:35.731 [http-bio-8080-exec-90] DEBUG o.a.h.c.protocol.RequestAddCookies - CookieSpec selected: best-match
17:15:35.731 [http-bio-8080-exec-90] DEBUG o.a.h.c.protocol.RequestAuthCache - Auth cache not set in the context
17:15:35.731 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://utilitytunnel.ewei.com:80][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20]
17:15:35.732 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection leased: [id: 1][route: {}->http://utilitytunnel.ewei.com:80][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20]
17:15:35.732 [http-bio-8080-exec-90] DEBUG o.a.h.impl.execchain.MainClientExec - Stale connection check
17:15:35.733 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "[read] I/O error: Read timed out"
17:15:35.733 [http-bio-8080-exec-90] DEBUG o.a.h.impl.execchain.MainClientExec - Executing request POST /api/v1/tickets.json HTTP/1.1
17:15:35.733 [http-bio-8080-exec-90] DEBUG o.a.h.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
17:15:35.733 [http-bio-8080-exec-90] DEBUG o.a.h.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
17:15:35.733 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> POST /api/v1/tickets.json HTTP/1.1
17:15:35.733 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> Content-Type: application/json;charset=UTF-8
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> Accept: application/json
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> _app_key: NjQx
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> _timestamp: 1474881335410
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> _sign: a1fd47d6afb404251c1b5bea2ceeedc9
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> Content-Length: 183
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> Host: utilitytunnel.ewei.com
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> Connection: Keep-Alive
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> User-Agent: Apache-HttpClient/4.3.5 (java 1.5)
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 >> Accept-Encoding: gzip,deflate
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "POST /api/v1/tickets.json HTTP/1.1[\r][\n]"
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Type: application/json;charset=UTF-8[\r][\n]"
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "Accept: application/json[\r][\n]"
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "_app_key: NjQx[\r][\n]"
17:15:35.734 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "_timestamp: 1474881335410[\r][\n]"
17:15:35.735 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "_sign: a1fd47d6afb404251c1b5bea2ceeedc9[\r][\n]"
17:15:35.735 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-Length: 183[\r][\n]"
17:15:35.735 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "Host: utilitytunnel.ewei.com[\r][\n]"
17:15:35.735 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
17:15:35.735 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "User-Agent: Apache-HttpClient/4.3.5 (java 1.5)[\r][\n]"
17:15:35.735 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
17:15:35.735 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "[\r][\n]"
17:15:35.735 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 >> "subject=Create+Ticket+by+java+program&description=Description+from+Java+program&status=new&requester=%7B%22id%22%3A247502%7D&serviceDesk=%7B%22id%22%3A1%7D&engineer=%7B%22id%22%3A1%7D"
17:15:35.871 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "HTTP/1.1 200 OK[\r][\n]"
17:15:35.871 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Server: nginx/1.7.11[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Date: Mon, 26 Sep 2016 09:15:35 GMT[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Type: application/json;charset=UTF-8[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Transfer-Encoding: chunked[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Connection: keep-alive[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Server-Info: ServerName=utilitytunnel.ewei.com, ServerPort=80, HostName=saas3[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Language: en-US[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Encoding: gzip[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "Vary: Accept-Encoding[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "90[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "[0x1f][0x8b][0x8][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0xaa]V*J-.[0xcd])Q[0xb2][0xaa]VJ-*[0xca]/R[0xb2]R[0xca]*[0xce][0xcf][0x8b]O[0xcb]/[0xca]M,[0x89][0x87][0x88][0xe9]@[0xe4][0xe2]K[0x8b]r[0x80][0xf2][0x19]%%[0x5]V[0xfa][0xfa][0x89][0x5][0x99]z[0xa9][0xe5][0xa9][0x99]z[0xc9][0xf9][0xb9] [0xe]Dm|f^Z>\CJjqrQfAIf~[0x1e]P[0xa3][0x17][0xd0][0xe0][0xa7][0xfd]M[0xcf][0xa6]nx9e[0xe6][0x8b][0xf5][0xeb][0x95]ju[0x94][0x8a]K[0x12]KJ[0x8b][0x95][0xac]L[\r][0xc][\r]j[0x1][0x2][0x4][0x0][0x0][0xff][0xff][0x11][0xb7];[0xfa][0x8e][0x0][0x0][0x0][\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "0[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]"
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << HTTP/1.1 200 OK
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Server: nginx/1.7.11
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Date: Mon, 26 Sep 2016 09:15:35 GMT
17:15:35.872 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Type: application/json;charset=UTF-8
17:15:35.873 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Transfer-Encoding: chunked
17:15:35.873 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Connection: keep-alive
17:15:35.873 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Server-Info: ServerName=utilitytunnel.ewei.com, ServerPort=80, HostName=saas3
17:15:35.873 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Language: en-US
17:15:35.873 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Encoding: gzip
17:15:35.873 [http-bio-8080-exec-90] DEBUG org.apache.http.headers - http-outgoing-1 << Vary: Accept-Encoding
17:15:35.873 [http-bio-8080-exec-90] DEBUG o.a.h.impl.execchain.MainClientExec - Connection can be kept alive indefinitely
HTTP/1.1 200 OK
responese2entityString=org.apache.http.client.entity.GzipDecompressingEntity@129a250c
17:15:35.873 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection [id: 1][route: {}->http://utilitytunnel.ewei.com:80] can be kept alive indefinitely
17:15:35.873 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection released: [id: 1][route: {}->http://utilitytunnel.ewei.com:80][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20]
17:15:35.873 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection manager is shutting down
17:15:35.874 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.DefaultManagedHttpClientConnection - http-outgoing-1: Close connection
17:15:35.874 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.DefaultManagedHttpClientConnection - http-outgoing-1: Close connection
17:15:35.874 [http-bio-8080-exec-90] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection manager shut down
doView 里面 pointName检测点名称:null


与此博客关联的另外一个博客,是同一件工作不同阶段的问题,写如何POST JSON数据到一个网站,如下:

http://blog.csdn.net/qxd100/article/details/52674225






内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐