Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 55415 invoked by uid 500); 8 Mar 2002 06:17:33 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 55404 invoked from network); 8 Mar 2002 06:17:33 -0000 Date: Fri, 8 Mar 2002 01:10:39 -0500 (EST) From: Donald Ball X-X-Sender: To: Subject: Re: Cocoon + UserAgent Strings In-Reply-To: <3C8849B3.1020506@collen.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, 7 Mar 2002, Tony Collen wrote: > I'm playing around with Cocoon, and I'm using src="http://foo.bar" /> to generate some XHTML from a website. I'm > getting back a 403 Denied error from the server, and I've deduced that > Cocoon is being denied access to the URL based on the User-Agent string > that it sends. I did a little snooping and I came up with the following > info out of my wwwlogs: > > "GET / HTTP/1.1" 200 18919 "-" "Java1.3.1_01" > > Is there any way, short of digging through code, to change the > User-Agent string that Cocoon sends? If not, is there someone who knows > the Cocoon source well enough to make the User-Agent string something > that could be configured through, say, cocoon.xconf? that is the user-agent string sent by the java.net.URL (or URLConnection) object when the content request is issued. afaik, it is not configurable. potential workarounds include: 1. configure the jvm to use a proxy server and change the user-agent string there. 2. swap the java.net.URL stuff with another java http client, say the one from the jakarta commons? that might be something you'd best do at the parser level, though, since i think it's generally responsible for actually getting the content for a url. 3. get the site maintainer to get their act together and stop forbidding access to urls based on user agent. - donald --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org