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+" + ["nameasswd"].pack('m').strip}"
But, I still get the same error.
Any help would be appreciated.
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+" + ["nameasswd"].pack('m').strip}"
But, I still get the same error.
Any help would be appreciated.