Has WebFetcher changed?

J

Jim Freeze

Hi

I am using WebFetcher to get pages from our intranet.
Before we installed 1.8.0, it worked fine. However,
now it is complaining of an authorization error.

The error I get is:

/tools/apps/ruby/ruby-1.8.0/lib/ruby/site_ruby/1.8/webfetcher.rb:392:in
`fetch_1_2': unreachable document
http://mrs.mycompany.com:1234/scripts/isynch.dll?panel=TclScript&Command=RunReport
401 Authorization Required (WebFetcher::UnreachableDocumentError)
from /usr/local/lib/ruby/site_ruby/1.8/webfetcher.rb:370:in
`times'
from /usr/local/lib/ruby/site_ruby/1.8/webfetcher.rb:370:in
`fetch_1_2'
from /usr/local/lib/ruby/site_ruby/1.8/webfetcher.rb:363:in
`fetch'
from /usr/local/lib/ruby/site_ruby/1.8/webfetcher.rb:438:in
`content'
from ../lib/cypress/mrsreport.rb:44:in `fetch'


However, this works if I paste the URL into my browser.
I have tried adding basic authentication to the script with:

"Authorization=#{"BASIC+" + ["name:passwd"].pack('m').strip}"


But, I still get the same error.

Any help would be appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,815
Members
47,361
Latest member
RogerDuabe

Latest Threads

Top