You could use the FlexContext Java object to put the headers that you need (as well as any other HTTP request/response info) into a POJO and pass it back to Flex.  I haven’t seen anyway to access this info from within Flex alone though.  I have always had to through a remote object / FDS to get it.  Hope that helps.

 


From: [email protected] [mailto:[email protected]] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, October 30, 2006 10:41 AM
To: [email protected]
Subject: Re: [flexcoders] Accessing HTTP headers from Flex Data Services

 


I will give "an" answer which I know works, but there must be better ways.

We wrapped our mxml with jsp using <flex:mxml.../>
accessed request.getHeader("XXX"); in the jsp
pushed those values into jsp string variables (XXX = ) and
substituted them in the mxml via <%= XXX %>

flashvars will automatically pass in parameters if variables are declared in the flex at the root level to match, I haven't tried header variables.

Note: The above seems to require a compile for every request for the page

Roxanne


"Dylan Schorer" <dylanschorer@yahoo.com>
Sent by: [EMAIL PROTECTED]ups.com

10/30/2006 12:05 PM

Please respond to
[EMAIL PROTECTED]ups.com

To

[EMAIL PROTECTED]ups.com

cc

 

Subject

[flexcoders] Accessing HTTP headers from Flex Data Services

 

 

 




Hi,

How can you access the HTTP header variables from within a Flex Data
Services MXML application. The request variables are easily accessible
through Application.application.parameters, but how can you get at
HTTP headers variables?

 


This e-mail message and all attachments transmitted with it may contain legally privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message and all copies and backups thereof.

Thank you.


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to