HarishVaranasi / linkchecker

Automatically exported from code.google.com/p/linkchecker
0 stars 0 forks source link

Does linkchecker support a start url using a port other than 80? #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run java -jar linkchecker.jar
2. At prompt, enter a url with non-default port: mysite.com:10349

What is the expected output? What do you see instead?
Expect urls to be checked.

I see the info summary list how many urls are found:
INFO - Scanning page: http://mysite.com:10349
INFO - Page contains: Links: 242, Media: 34, Imports: 3
INFO - Starting Pool: Threads: 10
INFO - [monitor] ActiveThreads: 0, TotalThreads: 10, CompletedTasks: 0, 
TotalTasks: 0

However, the default port is used when trying to connect:

ERROR - Link failed:  via http://mysite.com, Exception: 
org.apache.http.conn.HttpHostConnectException: Connection to 
http://scstage.atl.estalea.net refused, Cause: Connection refused
org.apache.http.conn.HttpHostConnectException: Connection to 
http://scstage.atl.estalea.net refused
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
    at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
    at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
    at org.open.pagehealth.PageLink.checkLink(PageLink.java:127)
    at org.open.pagehealth.ClickThread.run(ClickThread.java:22)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:637)
Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
    at java.net.Socket.connect(Socket.java:525)
    at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
    ... 12 more

What version of the product are you using? On what operating system?
7.5 
On Mac OS X 10.6

Please provide any additional information below.
Pointing to a url that run on port 80 works fine.

Original issue reported on code.google.com by savings1...@gmail.com on 21 Feb 2012 at 10:03

GoogleCodeExporter commented 9 years ago
User error for the information above. It was checking links that have the 
rel="nofollow" attribute. Is there support for this with linkchecker?

Original comment by savings1...@gmail.com on 22 Feb 2012 at 1:25