• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with passing headers in the WORedirect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with passing headers in the WORedirect


  • Subject: Re: Help with passing headers in the WORedirect
  • From: Freddie Tilley <email@hidden>
  • Date: Fri, 13 Feb 2009 09:11:26 +0100


On 12 feb 2009, at 19:55, Chuck Hill wrote:


On Feb 12, 2009, at 9:55 AM, Freddie Tilley wrote:

I wish to pass some header variables to a redirect but I'm having some problems

I'm trying to set the header as follows (I found this somewhere)

WORedirect redirect = new WORedirect(this.context());
redirect.setUrl("http://someurl.nl";);
WOResponse r = redirect.generateResponse();
r.setHeader("Value","Key");
redirect.appendToResponse(r, context());

But this does not appear to work. Is there a way to call the
call the destination page with custom headers?


As a guess, try this:

context().response().setHeader("Value","Key");
WORedirect redirect = new WORedirect(this.context());
redirect.setUrl("http://someurl.nl";);
WOResponse r = redirect.generateResponse();

It does not seem to apply the header values to the actual of the url.
Is there perhaps a way to call the url directly with my own headers, instead
of a redirect. Perhaps with a direct action?


thanks
Freddie Tilley
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Help with passing headers in the WORedirect
      • From: Chuck Hill <email@hidden>
References: 
 >Help with passing headers in the WORedirect (From: Freddie Tilley <email@hidden>)
 >Re: Help with passing headers in the WORedirect (From: Chuck Hill <email@hidden>)

  • Prev by Date: Deploying on linux
  • Next by Date: Re: Deploying on linux
  • Previous by thread: Re: Help with passing headers in the WORedirect
  • Next by thread: Re: Help with passing headers in the WORedirect
  • Index(es):
    • Date
    • Thread