You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Phu Kieu (JIRA)" <ji...@apache.org> on 2014/08/15 19:49:18 UTC

[jira] [Comment Edited] (NUTCH-1824) protocol-http using proxy not working with https sites

    [ https://issues.apache.org/jira/browse/NUTCH-1824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14098803#comment-14098803 ] 

Phu Kieu edited comment on NUTCH-1824 at 8/15/14 5:47 PM:
----------------------------------------------------------

Please refer to:

http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_tunneling
http://blog.vivekjishtu.com/2013/09/using-connect-method-on-http-proxy.html

Due to the nature of this bug, it is always reproducible using tinyproxy with any https URL.


was (Author: pkieu):
Please refer to http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_tunneling.

Due to the nature of this bug, it is always reproducible using tinyproxy with any https URL.

> protocol-http using proxy not working with https sites
> ------------------------------------------------------
>
>                 Key: NUTCH-1824
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1824
>             Project: Nutch
>          Issue Type: Bug
>          Components: protocol
>    Affects Versions: 1.9
>            Reporter: Phu Kieu
>            Priority: Minor
>             Fix For: 2.4, 1.10
>
>
> https sites do not work with protocol-http using a proxy.
> Further inspection of the source shows that it is not issuing CONNECT requests when it encounters an https address.
> 2014-08-15 09:27:20,295 INFO  api.HttpRobotRulesParser - Couldn't get robots.txt for https://*****: java.net.ConnectException: Connection refused
> 2014-08-15 09:27:20,296 ERROR http.Http - Failed to get protocol output
> java.net.ConnectException: Connection refused
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431)
> 	at java.net.Socket.connect(Socket.java:527)
> 	at org.apache.nutch.protocol.http.HttpResponse.<init>(HttpResponse.java:126)
> 	at org.apache.nutch.protocol.http.Http.getResponse(Http.java:72)
> 	at org.apache.nutch.protocol.http.api.HttpBase.getProtocolOutput(HttpBase.java:183)
> 	at org.apache.nutch.fetcher.Fetcher$FetcherThread.run(Fetcher.java:715)



--
This message was sent by Atlassian JIRA
(v6.2#6252)