logo       

Fwd: Url & HttpUrl: msg#00247

Subject: Fwd: Url & HttpUrl
[This message was incorrectly sent to the bounces address. I'm
forwarding it to the list on behalf of Zulq.  -Bob]

Subject:Url & HttpUrl
From:Zulq Alam <zulq@xxxxxxxxxx>
Date:Mon, 22 May 2006 09:14:28 +0100
To:beginners-bounces@xxxxxxxxxxxxxxxxxxxxxxxxxx

Hi,

I originally posted this to the squeak-dev list but that's just habit.
This is list seems more appropriate. I need to process some URLs in a
batch with no prior knowledge of whether these URLs will require
authentication.

Firstly, if I use Url's #retrieveContents for a URL that requires
authentication I am prompted for user name and password interactively. I
would rather an error was signaled or nil returned.

Having looked at the code there doesn't seem to be any way of changing
this behaviour without either modifying the code (used elsewhere) or
creating a new subclass which I would then have to instantiate directly
instead of using Url's #absoluteFromText  which I'd rather not do since
I may not just be dealing with HTTP.

Secondly, if I do dismiss this prompt either by choosing No or Cancel
when asked whether I want to enter a user name or password a
MIMEDocument is returned which has its contents set to the to the full
401 Unauthorized response including the headers prefixed by "error
occured retrieving url <THEURL>: " (done by HttpUrl>>normalizeContent).

This looks like two bugs, cancel not actually cancelling the request and
the actual response not being parsed correctly.

Thanks,
Zulq


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe