- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 http-components/java 读取此 URL (“https://www.encodeproject.org/files/ENCFF784GFP/@@download/ENCFF784GFP.hic ”)。
与 wget 配合使用效果良好:
wget -S -q -O - "https://www.encodeproject.org/files/ENCFF784GFP/@@download/ENCFF784GFP.hic" > /dev/null
(...)
HTTP/1.1 200 OK
x-amz-id-2: 5vWTJmx5PF0uyuR8cUWwtx9zOei2ewX+yskiLlqKMFJOzkBKP/ND3pTKdC2/9+WYjqTIGuQ/Cp4=
x-amz-request-id: B447183CF808894B
Date: Fri, 14 Jun 2019 12:29:39 GMT
Last-Modified: Sat, 09 Feb 2019 09:14:26 GMT
ETag: "ccaabdcb885389d618bfe826e67fe680-521"
Content-Disposition: attachment; filename=ENCFF784GFP.hic
Accept-Ranges: bytes
Content-Type: binary/octet-stream
Content-Length: 4367743691
Server: AmazonS3
(...)
当我使用以下 java 代码得到 404 时:
(...)
final HttpClientBuilder hb = HttpClients.custom();
final CloseableHttpClient httpClient = hb.build();
final HttpHead httpHead = new HttpHead(url.toExternalForm());
final CloseableHttpResponse response = httpClient.execute(httpHead);
if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK ) {
final String msg = "Unexpected Http status code "
+ response.getStatusLine()+" for \""+ url+"\""
;
response.close();
httpClient.close();
throw new IOException(msg);
}
(...)
具有以下日志:
2019/06/14 14:46:47:780 CEST [DEBUG] RequestAddCookies - CookieSpec selected: default
2019/06/14 14:46:47:794 CEST [DEBUG] RequestAuthCache - Auth cache not set in the context
2019/06/14 14:46:47:796 CEST [DEBUG] PoolingHttpClientConnectionManager - Connection request: [route: {s}->https://www.encodeproject.org:443][total kept alive: 0; rou
te allocated: 0 of 2; total allocated: 0 of 20]
2019/06/14 14:46:47:814 CEST [DEBUG] PoolingHttpClientConnectionManager - Connection leased: [id: 0][route: {s}->https://www.encodeproject.org:443][total kept alive:
0; route allocated: 1 of 2; total allocated: 1 of 20]
2019/06/14 14:46:47:815 CEST [DEBUG] MainClientExec - Opening connection {s}->https://www.encodeproject.org:443
2019/06/14 14:46:47:844 CEST [DEBUG] DefaultHttpClientConnectionOperator - Connecting to www.encodeproject.org/34.211.244.144:443
2019/06/14 14:46:47:845 CEST [DEBUG] SSLConnectionSocketFactory - Connecting socket to www.encodeproject.org/34.211.244.144:443 with timeout 0
2019/06/14 14:46:48:082 CEST [DEBUG] SSLConnectionSocketFactory - Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
2019/06/14 14:46:48:082 CEST [DEBUG] SSLConnectionSocketFactory - Enabled cipher suites:[TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA38
4, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_DHE_DSS_WIT
H_AES_256_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, TLS
_ECDH_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_12
8_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_
DHE_DSS_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_C
BC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDS
A_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_RSA_WITH_AES_256_G
CM_SHA384, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_
ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_DSS_WITH_AES_128_GCM_SHA256, TLS_EMPTY_RENEGOTIATION
_INFO_SCSV]
2019/06/14 14:46:48:082 CEST [DEBUG] SSLConnectionSocketFactory - Starting handshake
2019/06/14 14:46:48:500 CEST [DEBUG] SSLConnectionSocketFactory - Secure session established
2019/06/14 14:46:48:500 CEST [DEBUG] SSLConnectionSocketFactory - negotiated protocol: TLSv1.2
2019/06/14 14:46:48:501 CEST [DEBUG] SSLConnectionSocketFactory - negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
2019/06/14 14:46:48:502 CEST [DEBUG] SSLConnectionSocketFactory - peer principal: CN=*.encodeproject.org, OU=Domain Control Validated
2019/06/14 14:46:48:503 CEST [DEBUG] SSLConnectionSocketFactory - peer alternative names: [*.encodeproject.org, encodeproject.org]
2019/06/14 14:46:48:503 CEST [DEBUG] SSLConnectionSocketFactory - issuer principal: CN=AlphaSSL CA - SHA256 - G2, O=GlobalSign nv-sa, C=BE
2019/06/14 14:46:48:507 CEST [DEBUG] DefaultHttpClientConnectionOperator - Connection established 172.18.240.255:59598<->34.211.244.144:443
2019/06/14 14:46:48:508 CEST [DEBUG] MainClientExec - Executing request HEAD /files/ENCFF784GFP/@@download/ENCFF784GFP.hic HTTP/1.1
2019/06/14 14:46:48:508 CEST [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2019/06/14 14:46:48:509 CEST [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2019/06/14 14:46:48:510 CEST [DEBUG] headers - http-outgoing-0 >> HEAD /files/ENCFF784GFP/@@download/ENCFF784GFP.hic HTTP/1.1
2019/06/14 14:46:48:510 CEST [DEBUG] headers - http-outgoing-0 >> Host: www.encodeproject.org
2019/06/14 14:46:48:510 CEST [DEBUG] headers - http-outgoing-0 >> Connection: Keep-Alive
2019/06/14 14:46:48:511 CEST [DEBUG] headers - http-outgoing-0 >> User-Agent: Apache-HttpClient/4.5 (Java/1.8.0_191)
2019/06/14 14:46:48:511 CEST [DEBUG] headers - http-outgoing-0 >> Accept-Encoding: gzip,deflate
2019/06/14 14:46:48:688 CEST [DEBUG] headers - http-outgoing-0 << HTTP/1.1 307 Temporary Redirect
2019/06/14 14:46:48:689 CEST [DEBUG] headers - http-outgoing-0 << Server: nginx/1.14.1
2019/06/14 14:46:48:689 CEST [DEBUG] headers - http-outgoing-0 << Date: Fri, 14 Jun 2019 12:31:57 GMT
2019/06/14 14:46:48:689 CEST [DEBUG] headers - http-outgoing-0 << Content-Type: text/plain; charset=UTF-8
2019/06/14 14:46:48:689 CEST [DEBUG] headers - http-outgoing-0 << Content-Length: 1569
2019/06/14 14:46:48:689 CEST [DEBUG] headers - http-outgoing-0 << Connection: keep-alive
2019/06/14 14:46:48:689 CEST [DEBUG] headers - http-outgoing-0 << X-Request-URL: https://www.encodeproject.org/files/ENCFF784GFP/@@download/ENCFF784GFP.hic
2019/06/14 14:46:48:689 CEST [DEBUG] headers - http-outgoing-0 << X-Stats: es_count=1&es_time=1918&queue_begin=1560515517514062&queue_time=398&rss_begin=398917632&rss
_change=0&rss_end=398917632&wsgi_begin=1560515517514460&wsgi_end=1560515517522664&wsgi_time=8204
2019/06/14 14:46:48:689 CEST [DEBUG] headers - http-outgoing-0 << Access-Control-Allow-Origin: *
2019/06/14 14:46:48:690 CEST [DEBUG] headers - http-outgoing-0 << Access-Control-Allow-Methods: GET, HEAD
2019/06/14 14:46:48:690 CEST [DEBUG] headers - http-outgoing-0 << Access-Control-Allow-Headers: Accept, Origin, Range, X-Requested-With
2019/06/14 14:46:48:690 CEST [DEBUG] headers - http-outgoing-0 << Access-Control-Expose-Headers: Content-Length, Content-Range, Content-Type
2019/06/14 14:46:48:690 CEST [DEBUG] headers - http-outgoing-0 << Location: https://download.encodeproject.org/https://encode-public.s3.amazonaws.com/2018/04/06/8723e
e96-ccee-4384-b5a8-4040262283eb/ENCFF784GFP.hic?response-content-disposition=attachment%3B%20filename%3DENCFF784GFP.hic&Signature=YZmRQyN1SPT0vpRjyscTzLgV3WM%3D&x-amz
-security-token=AgoJb3JpZ2luX2VjEMT%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIBECuWysenOZdkDKbB6XfmcaQ8zul6azEkuNauJcIB91AiEA6%2FLuT9kpu%2BIvggBn3Dp7mJBxg9
2zGio1NlitzdjrJ08q4wMI7f%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgwyMjA3NDg3MTQ4NjMiDCYx83zFw7htd3syviq3AzISSluwceByIAxIcFaxcorsp2pKt8ZqsPUcgjsIeWJR2CaHnhyxGLXV3ydF8C4CmxYY
bgepXvPKTYy6i0UASGK8YJf2mPlzGoXjdiRZo%2BpjTJmhVO59CYgV%2B%2BoJqHYOkYqEotyfNT%2BOYxaMum0qzeOfpWjrApXqNyrBkkrowu6Ng85eDNjmZTO0DZWGJICZm%2FiBEi%2B6sewE3aGBLdTGiaKhmbDsKj
uNUNcBUwZfYfjBt0OwAASJZrC6C%2BjVSfiLjgBOaeY8pXqKmZ1X218AjX6vVzCSnriYvsLY1fmgCdu66ifTUU5GL5NqyDmS76UVO1PoviFSctLBU%2B%2BJtQBWwk%2BcoLS0oIU1%2FhtnoHYKH4M%2B2ne3z1w5i86L
1zsdUMXqZQ8AZ1A03iCUhQzCnDo%2Bo04njmhlF08voTZKVHbZ2icSEiKYERboR%2BMIhicYDtDhkRCcTZooP55A%2FSD9Ov4YtkwmpRgoBRMCYkiNl4rLD6MNyGipFJdFeoHllVZCfbMSjtOwmZRcOdKzZuJ%2FCDZhgP
njbzGc0oe%2Fp0QpXfYHNN00g6XEQdleW%2BcSGIDx7hMzuZydGxWOf7IwlpuO6AU6tAF4294kivKpwT90N%2FCA%2Fdquas6GmSMLpRWET%2FGcjgu9mhHXH0cZ3OOFHmWs%2Bo4e5o2i7geA7yCALBw4aIf%2BPpRUjR
EIx9IOPzMJHtKqDX8BLgFnjrvR2FXeiCnW%2BN0YxXGDP%2BRrlxLDkxBVbH6afcfV7ysqHIAwkWTUNlz7wKkCy4aIAfB3mPqMp3WsJ5KDx7xSNDfVe1kvsmNv8%2FIWed1K3KlnjG5VVbH2IklxMBJw5%2FYqSaQ%3D&E
xpires=1560645117&AWSAccessKeyId=ASIATGZNGCNXXYADQSVU
2019/06/14 14:46:48:690 CEST [DEBUG] headers - http-outgoing-0 << Strict-Transport-Security: max-age=15768000
2019/06/14 14:46:48:694 CEST [DEBUG] MainClientExec - Connection can be kept alive indefinitely
2019/06/14 14:46:48:695 CEST [DEBUG] PoolingHttpClientConnectionManager - Connection [id: 0][route: {s}->https://www.encodeproject.org:443] can be kept alive indefini
tely
2019/06/14 14:46:48:695 CEST [DEBUG] PoolingHttpClientConnectionManager - Connection released: [id: 0][route: {s}->https://www.encodeproject.org:443][total kept alive
: 1; route allocated: 1 of 2; total allocated: 1 of 20]
2019/06/14 14:46:48:698 CEST [DEBUG] DefaultRedirectStrategy - Redirect requested to location 'https://download.encodeproject.org/https://encode-public.s3.amazonaws.c
om/2018/04/06/8723ee96-ccee-4384-b5a8-4040262283eb/ENCFF784GFP.hic?response-content-disposition=attachment%3B%20filename%3DENCFF784GFP.hic&Signature=YZmRQyN1SPT0vpRjy
scTzLgV3WM%3D&x-amz-security-token=AgoJb3JpZ2luX2VjEMT%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIBECuWysenOZdkDKbB6XfmcaQ8zul6azEkuNauJcIB91AiEA6%2FLuT9kpu
%2BIvggBn3Dp7mJBxg92zGio1NlitzdjrJ08q4wMI7f%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgwyMjA3NDg3MTQ4NjMiDCYx83zFw7htd3syviq3AzISSluwceByIAxIcFaxcorsp2pKt8ZqsPUcgjsIeWJR2CaHn
hyxGLXV3ydF8C4CmxYYbgepXvPKTYy6i0UASGK8YJf2mPlzGoXjdiRZo%2BpjTJmhVO59CYgV%2B%2BoJqHYOkYqEotyfNT%2BOYxaMum0qzeOfpWjrApXqNyrBkkrowu6Ng85eDNjmZTO0DZWGJICZm%2FiBEi%2B6sew
E3aGBLdTGiaKhmbDsKjuNUNcBUwZfYfjBt0OwAASJZrC6C%2BjVSfiLjgBOaeY8pXqKmZ1X218AjX6vVzCSnriYvsLY1fmgCdu66ifTUU5GL5NqyDmS76UVO1PoviFSctLBU%2B%2BJtQBWwk%2BcoLS0oIU1%2FhtnoHY
KH4M%2B2ne3z1w5i86L1zsdUMXqZQ8AZ1A03iCUhQzCnDo%2Bo04njmhlF08voTZKVHbZ2icSEiKYERboR%2BMIhicYDtDhkRCcTZooP55A%2FSD9Ov4YtkwmpRgoBRMCYkiNl4rLD6MNyGipFJdFeoHllVZCfbMSjtOwm
ZRcOdKzZuJ%2FCDZhgPnjbzGc0oe%2Fp0QpXfYHNN00g6XEQdleW%2BcSGIDx7hMzuZydGxWOf7IwlpuO6AU6tAF4294kivKpwT90N%2FCA%2Fdquas6GmSMLpRWET%2FGcjgu9mhHXH0cZ3OOFHmWs%2Bo4e5o2i7geA7
yCALBw4aIf%2BPpRUjREIx9IOPzMJHtKqDX8BLgFnjrvR2FXeiCnW%2BN0YxXGDP%2BRrlxLDkxBVbH6afcfV7ysqHIAwkWTUNlz7wKkCy4aIAfB3mPqMp3WsJ5KDx7xSNDfVe1kvsmNv8%2FIWed1K3KlnjG5VVbH2Ikl
xMBJw5%2FYqSaQ%3D&Expires=1560645117&AWSAccessKeyId=ASIATGZNGCNXXYADQSVU'
2019/06/14 14:46:48:707 CEST [DEBUG] RedirectExec - Resetting target auth state
2019/06/14 14:46:48:708 CEST [DEBUG] RedirectExec - Redirecting to 'https://download.encodeproject.org/https:/encode-public.s3.amazonaws.com/2018/04/06/8723ee96-ccee-
4384-b5a8-4040262283eb/ENCFF784GFP.hic?response-content-disposition=attachment%3B%20filename%3DENCFF784GFP.hic&Signature=YZmRQyN1SPT0vpRjyscTzLgV3WM%3D&x-amz-security
-token=AgoJb3JpZ2luX2VjEMT%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIBECuWysenOZdkDKbB6XfmcaQ8zul6azEkuNauJcIB91AiEA6%2FLuT9kpu%2BIvggBn3Dp7mJBxg92zGio1Nli
tzdjrJ08q4wMI7f%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgwyMjA3NDg3MTQ4NjMiDCYx83zFw7htd3syviq3AzISSluwceByIAxIcFaxcorsp2pKt8ZqsPUcgjsIeWJR2CaHnhyxGLXV3ydF8C4CmxYYbgepXvPKT
Yy6i0UASGK8YJf2mPlzGoXjdiRZo%2BpjTJmhVO59CYgV%2B%2BoJqHYOkYqEotyfNT%2BOYxaMum0qzeOfpWjrApXqNyrBkkrowu6Ng85eDNjmZTO0DZWGJICZm%2FiBEi%2B6sewE3aGBLdTGiaKhmbDsKjuNUNcBUwZ
fYfjBt0OwAASJZrC6C%2BjVSfiLjgBOaeY8pXqKmZ1X218AjX6vVzCSnriYvsLY1fmgCdu66ifTUU5GL5NqyDmS76UVO1PoviFSctLBU%2B%2BJtQBWwk%2BcoLS0oIU1%2FhtnoHYKH4M%2B2ne3z1w5i86L1zsdUMXqZ
Q8AZ1A03iCUhQzCnDo%2Bo04njmhlF08voTZKVHbZ2icSEiKYERboR%2BMIhicYDtDhkRCcTZooP55A%2FSD9Ov4YtkwmpRgoBRMCYkiNl4rLD6MNyGipFJdFeoHllVZCfbMSjtOwmZRcOdKzZuJ%2FCDZhgPnjbzGc0oe
%2Fp0QpXfYHNN00g6XEQdleW%2BcSGIDx7hMzuZydGxWOf7IwlpuO6AU6tAF4294kivKpwT90N%2FCA%2Fdquas6GmSMLpRWET%2FGcjgu9mhHXH0cZ3OOFHmWs%2Bo4e5o2i7geA7yCALBw4aIf%2BPpRUjREIx9IOPzM
JHtKqDX8BLgFnjrvR2FXeiCnW%2BN0YxXGDP%2BRrlxLDkxBVbH6afcfV7ysqHIAwkWTUNlz7wKkCy4aIAfB3mPqMp3WsJ5KDx7xSNDfVe1kvsmNv8%2FIWed1K3KlnjG5VVbH2IklxMBJw5%2FYqSaQ%3D&Expires=15
60645117&AWSAccessKeyId=ASIATGZNGCNXXYADQSVU' via {s}->https://download.encodeproject.org:443
2019/06/14 14:46:48:710 CEST [DEBUG] RequestAddCookies - CookieSpec selected: default
2019/06/14 14:46:48:710 CEST [DEBUG] RequestAuthCache - Auth cache not set in the context
2019/06/14 14:46:48:710 CEST [DEBUG] PoolingHttpClientConnectionManager - Connection request: [route: {s}->https://download.encodeproject.org:443][total kept alive: 1
; route allocated: 0 of 2; total allocated: 1 of 20]
2019/06/14 14:46:48:711 CEST [DEBUG] PoolingHttpClientConnectionManager - Connection leased: [id: 1][route: {s}->https://download.encodeproject.org:443][total kept al
ive: 1; route allocated: 1 of 2; total allocated: 2 of 20]
2019/06/14 14:46:48:711 CEST [DEBUG] MainClientExec - Opening connection {s}->https://download.encodeproject.org:443
2019/06/14 14:46:48:890 CEST [DEBUG] DefaultHttpClientConnectionOperator - Connecting to download.encodeproject.org/34.211.244.144:443
2019/06/14 14:46:48:891 CEST [DEBUG] SSLConnectionSocketFactory - Connecting socket to download.encodeproject.org/34.211.244.144:443 with timeout 0
2019/06/14 14:46:49:048 CEST [DEBUG] SSLConnectionSocketFactory - Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
2019/06/14 14:46:49:048 CEST [DEBUG] SSLConnectionSocketFactory - Enabled cipher suites:[TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA38
4, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_DHE_DSS_WIT
H_AES_256_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, TLS
_ECDH_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_12
8_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_
DHE_DSS_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_C
BC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDS
A_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_RSA_WITH_AES_256_G
CM_SHA384, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_
ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_DSS_WITH_AES_128_GCM_SHA256, TLS_EMPTY_RENEGOTIATION
_INFO_SCSV]
2019/06/14 14:46:49:048 CEST [DEBUG] SSLConnectionSocketFactory - Starting handshake
2019/06/14 14:46:49:388 CEST [DEBUG] SSLConnectionSocketFactory - Secure session established
2019/06/14 14:46:49:388 CEST [DEBUG] SSLConnectionSocketFactory - negotiated protocol: TLSv1.2
2019/06/14 14:46:49:388 CEST [DEBUG] SSLConnectionSocketFactory - negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
2019/06/14 14:46:49:388 CEST [DEBUG] SSLConnectionSocketFactory - peer principal: CN=*.encodeproject.org, OU=Domain Control Validated
2019/06/14 14:46:49:388 CEST [DEBUG] SSLConnectionSocketFactory - peer alternative names: [*.encodeproject.org, encodeproject.org]
2019/06/14 14:46:49:388 CEST [DEBUG] SSLConnectionSocketFactory - issuer principal: CN=AlphaSSL CA - SHA256 - G2, O=GlobalSign nv-sa, C=BE
2019/06/14 14:46:49:389 CEST [DEBUG] DefaultHttpClientConnectionOperator - Connection established 172.18.240.255:59602<->34.211.244.144:443
2019/06/14 14:46:49:389 CEST [DEBUG] MainClientExec - Executing request HEAD /https:/encode-public.s3.amazonaws.com/2018/04/06/8723ee96-ccee-4384-b5a8-4040262283eb/EN
CFF784GFP.hic?response-content-disposition=attachment%3B%20filename%3DENCFF784GFP.hic&Signature=YZmRQyN1SPT0vpRjyscTzLgV3WM%3D&x-amz-security-token=AgoJb3JpZ2luX2VjEM
T%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIBECuWysenOZdkDKbB6XfmcaQ8zul6azEkuNauJcIB91AiEA6%2FLuT9kpu%2BIvggBn3Dp7mJBxg92zGio1NlitzdjrJ08q4wMI7f%2F%2F%2F%
2F%2F%2F%2F%2F%2F%2FARAAGgwyMjA3NDg3MTQ4NjMiDCYx83zFw7htd3syviq3AzISSluwceByIAxIcFaxcorsp2pKt8ZqsPUcgjsIeWJR2CaHnhyxGLXV3ydF8C4CmxYYbgepXvPKTYy6i0UASGK8YJf2mPlzGoXjdi
RZo%2BpjTJmhVO59CYgV%2B%2BoJqHYOkYqEotyfNT%2BOYxaMum0qzeOfpWjrApXqNyrBkkrowu6Ng85eDNjmZTO0DZWGJICZm%2FiBEi%2B6sewE3aGBLdTGiaKhmbDsKjuNUNcBUwZfYfjBt0OwAASJZrC6C%2BjVSf
iLjgBOaeY8pXqKmZ1X218AjX6vVzCSnriYvsLY1fmgCdu66ifTUU5GL5NqyDmS76UVO1PoviFSctLBU%2B%2BJtQBWwk%2BcoLS0oIU1%2FhtnoHYKH4M%2B2ne3z1w5i86L1zsdUMXqZQ8AZ1A03iCUhQzCnDo%2Bo04n
jmhlF08voTZKVHbZ2icSEiKYERboR%2BMIhicYDtDhkRCcTZooP55A%2FSD9Ov4YtkwmpRgoBRMCYkiNl4rLD6MNyGipFJdFeoHllVZCfbMSjtOwmZRcOdKzZuJ%2FCDZhgPnjbzGc0oe%2Fp0QpXfYHNN00g6XEQdleW%
2BcSGIDx7hMzuZydGxWOf7IwlpuO6AU6tAF4294kivKpwT90N%2FCA%2Fdquas6GmSMLpRWET%2FGcjgu9mhHXH0cZ3OOFHmWs%2Bo4e5o2i7geA7yCALBw4aIf%2BPpRUjREIx9IOPzMJHtKqDX8BLgFnjrvR2FXeiCnW
%2BN0YxXGDP%2BRrlxLDkxBVbH6afcfV7ysqHIAwkWTUNlz7wKkCy4aIAfB3mPqMp3WsJ5KDx7xSNDfVe1kvsmNv8%2FIWed1K3KlnjG5VVbH2IklxMBJw5%2FYqSaQ%3D&Expires=1560645117&AWSAccessKeyId=A
SIATGZNGCNXXYADQSVU HTTP/1.1
2019/06/14 14:46:49:389 CEST [DEBUG] MainClientExec - Target auth state: UNCHALLENGED
2019/06/14 14:46:49:389 CEST [DEBUG] MainClientExec - Proxy auth state: UNCHALLENGED
2019/06/14 14:46:49:390 CEST [DEBUG] headers - http-outgoing-1 >> HEAD /https:/encode-public.s3.amazonaws.com/2018/04/06/8723ee96-ccee-4384-b5a8-4040262283eb/ENCFF784
GFP.hic?response-content-disposition=attachment%3B%20filename%3DENCFF784GFP.hic&Signature=YZmRQyN1SPT0vpRjyscTzLgV3WM%3D&x-amz-security-token=AgoJb3JpZ2luX2VjEMT%2F%2
F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIBECuWysenOZdkDKbB6XfmcaQ8zul6azEkuNauJcIB91AiEA6%2FLuT9kpu%2BIvggBn3Dp7mJBxg92zGio1NlitzdjrJ08q4wMI7f%2F%2F%2F%2F%2F%
2F%2F%2F%2F%2FARAAGgwyMjA3NDg3MTQ4NjMiDCYx83zFw7htd3syviq3AzISSluwceByIAxIcFaxcorsp2pKt8ZqsPUcgjsIeWJR2CaHnhyxGLXV3ydF8C4CmxYYbgepXvPKTYy6i0UASGK8YJf2mPlzGoXjdiRZo%2B
pjTJmhVO59CYgV%2B%2BoJqHYOkYqEotyfNT%2BOYxaMum0qzeOfpWjrApXqNyrBkkrowu6Ng85eDNjmZTO0DZWGJICZm%2FiBEi%2B6sewE3aGBLdTGiaKhmbDsKjuNUNcBUwZfYfjBt0OwAASJZrC6C%2BjVSfiLjgBO
aeY8pXqKmZ1X218AjX6vVzCSnriYvsLY1fmgCdu66ifTUU5GL5NqyDmS76UVO1PoviFSctLBU%2B%2BJtQBWwk%2BcoLS0oIU1%2FhtnoHYKH4M%2B2ne3z1w5i86L1zsdUMXqZQ8AZ1A03iCUhQzCnDo%2Bo04njmhlF0
8voTZKVHbZ2icSEiKYERboR%2BMIhicYDtDhkRCcTZooP55A%2FSD9Ov4YtkwmpRgoBRMCYkiNl4rLD6MNyGipFJdFeoHllVZCfbMSjtOwmZRcOdKzZuJ%2FCDZhgPnjbzGc0oe%2Fp0QpXfYHNN00g6XEQdleW%2BcSGI
Dx7hMzuZydGxWOf7IwlpuO6AU6tAF4294kivKpwT90N%2FCA%2Fdquas6GmSMLpRWET%2FGcjgu9mhHXH0cZ3OOFHmWs%2Bo4e5o2i7geA7yCALBw4aIf%2BPpRUjREIx9IOPzMJHtKqDX8BLgFnjrvR2FXeiCnW%2BN0Y
xXGDP%2BRrlxLDkxBVbH6afcfV7ysqHIAwkWTUNlz7wKkCy4aIAfB3mPqMp3WsJ5KDx7xSNDfVe1kvsmNv8%2FIWed1K3KlnjG5VVbH2IklxMBJw5%2FYqSaQ%3D&Expires=1560645117&AWSAccessKeyId=ASIATGZ
NGCNXXYADQSVU HTTP/1.1
2019/06/14 14:46:49:390 CEST [DEBUG] headers - http-outgoing-1 >> Host: download.encodeproject.org
2019/06/14 14:46:49:390 CEST [DEBUG] headers - http-outgoing-1 >> Connection: Keep-Alive
2019/06/14 14:46:49:390 CEST [DEBUG] headers - http-outgoing-1 >> User-Agent: Apache-HttpClient/4.5 (Java/1.8.0_191)
2019/06/14 14:46:49:392 CEST [DEBUG] headers - http-outgoing-1 >> Accept-Encoding: gzip,deflate
2019/06/14 14:46:49:548 CEST [DEBUG] headers - http-outgoing-1 << HTTP/1.1 404 Not Found
2019/06/14 14:46:49:548 CEST [DEBUG] headers - http-outgoing-1 << Server: nginx/1.14.1
2019/06/14 14:46:49:548 CEST [DEBUG] headers - http-outgoing-1 << Date: Fri, 14 Jun 2019 12:31:58 GMT
2019/06/14 14:46:49:548 CEST [DEBUG] headers - http-outgoing-1 << Content-Type: text/html
2019/06/14 14:46:49:548 CEST [DEBUG] headers - http-outgoing-1 << Content-Length: 169
2019/06/14 14:46:49:548 CEST [DEBUG] headers - http-outgoing-1 << Connection: keep-alive
2019/06/14 14:46:49:549 CEST [DEBUG] MainClientExec - Connection can be kept alive indefinitely
2019/06/14 14:46:49:549 CEST [DEBUG] PoolingHttpClientConnectionManager - Connection [id: 1][route: {s}->https://download.encodeproject.org:443] can be kept alive ind
efinitely
2019/06/14 14:46:49:549 CEST [DEBUG] PoolingHttpClientConnectionManager - Connection released: [id: 1][route: {s}->https://download.encodeproject.org:443][total kept
alive: 2; route allocated: 1 of 2; total allocated: 2 of 20]
2019/06/14 14:46:49:549 CEST [DEBUG] PoolingHttpClientConnectionManager - Connection manager is shutting down
2019/06/14 14:46:49:549 CEST [DEBUG] DefaultManagedHttpClientConnection - http-outgoing-1: Close connection
2019/06/14 14:46:49:550 CEST [DEBUG] DefaultManagedHttpClientConnection - http-outgoing-0: Close connection
2019/06/14 14:46:49:550 CEST [DEBUG] DefaultManagedHttpClientConnection - http-outgoing-0: Close connection
2019/06/14 14:46:49:551 CEST [DEBUG] DefaultManagedHttpClientConnection - http-outgoing-1: Close connection
2019/06/14 14:46:49:551 CEST [DEBUG] PoolingHttpClientConnectionManager - Connection manager shut down
[SEVERE][HicFileInfo]Unexpected Http status code HTTP/1.1 404 Not Found for "https://www.encodeproject.org/files/ENCFF784GFP/@@download/ENCFF784GFP.hic"
设置用户代理不起作用。
我该如何解决这个问题?谢谢
最佳答案
我在 https://issues.apache.org/jira/browse/HTTPCLIENT-1993 发布了我的问题?
我在这里引用 Oleg Kalnichevski 的回答。
The redirect URI returned by the server contains unescaped reserved characters in the path component.
If you want HttpClient to pass that sequence onto the server without validating and normalizing it, you can disable request URI normalization with RequestConfig .
CloseableHttpClient client = HttpClients.createSystem();
RequestConfig requestConfig = RequestConfig.custom().setNormalizeUri(false).build();
HttpClientContext clientContext = HttpClientContext.create();
clientContext.setRequestConfig(requestConfig);
try (CloseableHttpResponse response = client.execute(
new HttpGet("https://www.encodeproject.org/files/ENCFF784GFP/@@download/ENCFF784GFP.hic"),
clientContext)) {
System.out.println(response.getStatusLine());
HttpEntity entity = response.getEntity();
EntityUtils.consume(entity);
}
HTTP/1.1 200 OK
关于java - wget 返回 200/OK,而 org.apache.http.impl.client.CloseableHttpClient 返回 404/NOT_FOUND,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56598349/
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
在编码时,我问了自己这个问题: 这样更快吗: if(false) return true; else return false; 比这个? if(false) return true; return
如何在逻辑条件下进行“返回”? 在这样的情况下这会很有用 checkConfig() || return false; var iNeedThis=doSomething() || return fa
这是我的正则表达式 demo 如问题所述: 如果第一个数字是 1 则返回 1 但如果是 145 则返回 145 但如果是 133 则返回 133 样本数据a: K'8134567 K'81345678
在代码高尔夫问答部分查看谜题和答案时,我遇到了 this solution返回 1 的最长和最晦涩的方法 引用答案, int foo(void) { return! 0; } int bar(
我想在下面返回 JSON。 { "name": "jackie" } postman 给我错误。说明 Unexpected 'n' 这里是 Spring Boot 的新手。 1日龄。有没有正确的方法来
只要“is”返回 True,“==”不应该返回 True 吗? In [101]: np.NAN is np.nan is np.NaN Out[101]: True In [102]: np.NAN
我需要获取所有在 6 号或 7 号房间或根本不在任何房间的学生的详细信息。如果他们在其他房间,简单地说,我不希望有那个记录。 我的架构是: students(roll_no, name,class,.
我有一个表单,我将它发送到 php 以通过 ajax 插入到 mysql 数据库中。一切顺利,php 返回 "true" 值,但在 ajax 中它显示 false 消息。 在这里你可以查看php代码:
我在 Kotlin 中遇到了一个非常奇怪的无法解释的值比较问题,以下代码打印 假 data class Foo ( val a: Byte ) fun main() { val NUM
请注意,这并非特定于 Protractor。问题在于 Angular 2 的内置 Testability service Protractor 碰巧使用。 Protractor 调用 Testabil
在调试窗口中,以下表达式均返回 1。 Application.WorksheetFunction.CountA(Cells(4 + (i - 1) * rows_per_record, 28) & "
我在本地使用 jsonplaceholder ( http://jsonplaceholder.typicode.com/)。我正在通过 extjs rest 代理测试我的 GET 和 POST 调用
这是 Postman 为成功调用我的页面而提供的(修改后的)代码段。 var client = new RestClient("http://sub.example.com/wp-json/wp/v2
这个问题在这里已经有了答案: What to do with mysqli problems? Errors like mysqli_fetch_array(): Argument #1 must
我想我对 C 命令行参数有点生疏。我查看了我的一些旧代码,但无论这个版本是什么,都会出现段错误。 运行方式是 ./foo -n num(其中 num 是用户在命令行中输入的数字) 但不知何故它不起作用
我已经编写了一个类来处理命名管道连接,如果我创建了一个实例,关闭它,然后尝试创建另一个实例,调用 CreateFile() 返回 INVALID_HANDLE_VALUE,并且 GetLastErro
即使 is_writable() 返回 true,我也无法写入文件。当然,该文件存在并且显然是可读的。这是代码: $file = "data"; echo file_get_contents($fil
下面代码中的变量 $response 为 NULL,尽管它应该是 SOAP 请求的值。 (潮汐列表)。当我调用 $client->__getLastResponse() 时,我从 SOAP 服务获得了
我一直在网上的不同论坛上搜索答案,但似乎没有与我的情况相符的... 我正在使用 Windows 7,VS2010。 我有一个使用定时器来调用任务栏刷新功能的应用程序。在该任务栏函数中包含对 LoadI
我是一名优秀的程序员,十分优秀!