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 Tue, 01 Mar 2011 10:46:05 GMT
Hi Chris,

It doesn't make any difference - it's plain old HTTP despite the jargon :)

If you have already seen this
http://www.mail-archive.com/users@cocoon.apache.org/msg34182.html

then investigate the original Generator code at
/cocoon-2.1.11/src/blocks/proxy/java/org/apache/cocoon/generation/WebServiceProxyGenerator.java

It could be that this will be sufficient for your requirements.

Best regards,

Warrell


On 28 February 2011 16:13, Christopher Schultz <chris@christopherschultz.net
> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Warrell,
>
> On 2/28/2011 6:41 AM, warrell harries wrote:
> > 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.
>
> I was talking about a vanilla HTTP request that returns an XML document,
> not a formal web service. Not sure if that changes your suggestion(s).
>
> > 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.
>
> That would be cool. I've had a hard time penetrating the Cocoon code
> base in the past. Any pointers on where to look to possibly implement this?
>
> Thanks,
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk1rybAACgkQ9CaO5/Lv0PAA8wCfWcDOcdJ/U4SiB3X9UTuRBqK0
> FG4AoKsjKpjN4Cdy/msD8N6WmCJ0yMHT
> =U07J
> -----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