cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From warrell harries <warrell.harr...@gmail.com>
Subject Re: Setting URLConnection User-Agent String
Date Mon, 28 Feb 2011 11:41:51 GMT
Please see recent discussion regarding proxying to another server. In brief,
I usually deploy a custom transformer based on the web service proxy
transformer but setting the user agent header before invoking the web
service.

Seems like this is a common requirement and it would be good if the desired
header could be passed in as a sitemap parameter to an existing component. I
am not aware of any existing component that provides this facility.

Regards,

Warrell
On 25 Feb 2011 16:55, "Christopher Schultz" <chris@christopherschultz.net>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> All,
>
> I'm using Cocoon 2.1.11 with some pipelines that fetch data from another
> webapp via Apache httpd which logs the requests with the User-Agent
> being "Java/whatever". I'm wondering if Cocoon offers the ability to
> tweak the User-Agent string that is used when fetching data from http://
> resources?
>
> I believe I can set the http.agent system property, but I was wondering
> if anyone has another (better?) technique to do this?
>
> Thanks,
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk1n3uIACgkQ9CaO5/Lv0PAjqwCdEeS0fpVuAHhXEeyEXKehyTO6
> 54IAoLWV0wHj6TjiAXihOTUZAwOMHRRB
> =e1Ma
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>

Mime
View raw message