[Home]You Are Not Authorized To View This Page Error From IIS When Using Perl And LWP To Browse Localhost

Contents | (Visit Preferences to set your user name.) | Related To You Are Not Authorized To View This Page Error From IIS When Using Perl And LWP To Browse Localhost | RecentChanges | Preferences | Index | Login | Logout

Featured: Featured Stories | Picture Gallery

GeorgeLeCompte's Bookmark Collection | Only Certain Exports Are Subject To Controls
Google
Chat11.com Web Bible11.com MyBibleCenter.com
Search For Books About:
Garnet, GetObject, Internet, LocalHost, Tech Tips, Tech, Tips, Web
Search The Net:
Garnet
Tech
Internet
Web
Tips
Tech Tips
LocalHost
GetObject
Cover of ISBN 0834003465 Cover of ISBN 0785201688
Cover of ISBN 081297476X The Bush Survival Guide - 250 Ways to Make It Through The NExt Four Years Without Misunderestimating the Dangers Ahead, and Other Subliminable Stategeries
Links:

"You Are Not Authorized To View This Page Error" From IIS

When Using Perl And LWP To Browse Localhost

Subjects > Tech Tips
See also Internet > Web

Q. I have IIS 5.0 setup on a laptop with Windows XP, and I use it for a development when I am not connected to the net. It provides a quick place to check out develop front page sites, and even to test perl programs to make sure they will run with IIS. The site works fine for browsing via http://localhost

Yesterday I was looking at writing a spider to access some websites, and I found that when I pointed the spider at localhost, it was unable to read pages off my local machine. Didn't matter whether the webpage was being produced by a perl script, or was a static HTML, instead of content, I got this error:

Status line: 401 Access Denied

You are not authorized to view this page You do not have permission to view this directory or page using the credentials you supplied.


HTTP 401.1 - Unauthorized: Logon Failed Internet Information Services

This only happened from the perl script using LWP. When using a webbrowser on my machine to browse the same URLs, everything was ok.

A. I verified this users problem, and then went to work to find a solution.

Turns out that this problem has to do with access rights. Go to the security event log viewer, and you'll see a whole bunch of access denied messages about not being able to log in the user. In this case, IIS had been setup to use the Administrator account for anonymous web access. Somehow the browser had been authenticating properly, but the accesses originating from the DOS prompt were not.

So the fix is to go into the computer management console, and select IIS. The right click the properties for the default website, go to security, enable anonymous access, then edit the settings, and choose an actual user of the machine to be the user that IIS uses for anonymous access.


See more of Garnet's Tech Tips ...

Did This Solve Your Problem?

Tech Tips By Garnet ...

If so, I'd like to hear from you.

I spend a lot of time tracking down solutions to many problems and questions, and it takes a lot of time to write about the answers so you can benefit from them. But I hope this page helped you solve your problem, or answered your question, clearly and quickly. If you'd like to donate a buck or two via paypal, that would be nice too! For any size donation, I'll send you an Internet Guide on the topic of your choice to include on your website. You can see my new site for [Guides To The Internet].

Please also consider making a link to this page from your website.

You can also reach me privately with your questions at [my contact page]!

- Garnet

From Tech Tips

Check out [Facts About Trees]


Contents | (Visit Preferences to set your user name.) | Related To You Are Not Authorized To View This Page Error From IIS When Using Perl And LWP To Browse Localhost | RecentChanges | Preferences | Index | Login | Logout
Edit this www.mysleepcenter.com page | View other versions
Last edited March 21, 2008 6:30 pm (diff)
Search:
Sign up for PayPal and start accepting credit card payments
instantly.
Bobsgear - Get A Free Enterrpise Wiki Space!
Review: The Bobsgear Project was started to develop a variety of Confluence plugins. This installation of the Confluence Enterprise wiki includes flexible attachments, many Confluence plugins, personal blogs, interesting articles, and more. Bobsgear already has spaces related to politics, art and photography wiki, technical issues wiki, ediscovery wiki, health, Christian theology and Sabbath School wiki, the bible, book reviews, and quotations. Bobsgear allows free signup, and invites anyone to create a free hosted Confluence wiki space.


NEW USERS CLICK HERE! for a quick introduction to Wiki.

 

 Interested in Stretching FAQ 3.1 - Ballistic Stretching?
21391 total hits since 2/2011
Recently accessed pages: 2004 Earthquake And Tsunami News From Penang And Malaysia Adobe Acrobat 6.0 Professional License Agreement Book Low Carb Comfort Food Cookbook Book The Fight For Jerusalem Coast To Coast AM With George Noory Dogs - Irish Wolfhound Ellen Degeneres GeorgeLeCompte's Bookmark Collection George Burns Insects/TopAd3 Joan Rivers Max Nano Molded Stone Pets Reference Literature On Hum Disease SEM - Robots Exclusion Seventh-Day Adventist Elder Guide Study Guide For Chapter 8 The China Study Part 4 - Big Medicine - Whose Health Are They Protecting Top Searches Website Design And Promotion Advice Why Doesn't Sony Ship Recovery Disks Yagi Antenna YahooTree Yeti

Elapsed:1