Comment #1 − request failed
by unknown -

Hi
I am trying to achieve the same goal and attempted your solution.
Did you encounter any issues where the perl script failed to be able to run html2wiki on the generated url?

i am using ActivePerl and running this via the windows command prompt.
I have verified the url exists by running: explorer http://www….

After spending much time pulling down all the necessary perl modules i get this error:

$> perl wikifetch.pl

Reading config…
Pending pages:
Configuring_Eclipse_developmentDone reading config
Fetching/processing: http://…valid url
request for <http://…valid url> failed at wikifetch.pl line 113

the line it ocmplains about is:
my $wiki_text = $wc->html2wiki( uri => $page_name );


can you suggets a html command line test i can run to similate this from the command line?
my perl knowledge is not good.

thanks

Tom

Updated by unknown -

by Marco -

…I’m not the guy who originally wrote this article, but I’ll do what I can! ;-)

The complaint that the “request for <http://…valid url> failed” seems to indicate a url-resolution problem, but it’s hard to tell because the error message doesn’t specify the exact problem.

  • Are you sure that the uri is valid?
  • Can you ping it?
  • Are you sure that the HTML::WikiConverter plugin and dialect are installed?
by Patrick -

…as the guy who had written it: The URI printed out by line 112 (Fetching/processing…) is the URI that actually will be fetched.

Some additional things that could go wrong:

  • The wiki is password protected. If so you might get around the issue by setting your URI to http://user:password@thesite.com
  • The server redirects your browser after accessing the URI. I don’t know if perl’s HTTP library handles that.