[flexcoders] Re: URLRequest.requestHeaders

2007-03-27 Thread Paul DeCoursey
Alright, so here is the real problem.  FileReference.upload never
shares session/cookies/headers/(all the stuff we can't set) with the
browser or other requests made from Flash.  This is a huge problem. 
How are we supposed to manage a secure server environment when the
security issues on the client tie our hands?  I have tried every trick
in the book to get this to work and frankly I don't see any compelling
reason to continue using Flex if we can't have a bit more control over
server communication.



--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 There are restrictions on what headers can be set.  Check the docs here
 to make sure you're OK:
 http://livedocs.adobe.com/flex/201/langref/flash/net/URLRequestHeader.ht
 ml
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Paul DeCoursey
 Sent: Monday, March 26, 2007 10:12 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] URLRequest.requestHeaders
 
 
 
 Has anyone used this? I am having a lot of trouble getting requests
 to actually send those headers to the server. I'm curious if anyone
 else has had experience with them. My problem is I cannot
 authenticate to our remote servers. Some of the servers use Basic
 Authentication and some use SOAP headers. I have been able to get it
 to work by getting the session id from SOAP and passing that as to the
 services that used basic. I had to turn off basic auth and just fail
 the request if there is not a valid session. Problem now is I have no
 session on this other server and need to get one created, but I cannot
 authenticate because there are no soap handlers and Flash cannot be
 basic without prompting the user. So I was looking at sending some
 authentication tokens as headers with the requests, but they are not
 arriving at the server.
 
 Paul





[flexcoders] Re: URLRequest.requestHeaders

2007-03-26 Thread Paul DeCoursey
I am finding that sometimes it works and sometimes it does not.  From
what I can tell is if I have done a FileReference.upload request
recently in the app it does not send the headers. I'm not sure if it
is recycling the request or what, I'm not recycling it myself anyway.
I'm assuming that the limitation for sending headers is related to
browsers and plugins so I'm not going to ask what's up with that.

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 There are restrictions on what headers can be set.  Check the docs here
 to make sure you're OK:
 http://livedocs.adobe.com/flex/201/langref/flash/net/URLRequestHeader.ht
 ml
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Paul DeCoursey
 Sent: Monday, March 26, 2007 10:12 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] URLRequest.requestHeaders
 
 
 
 Has anyone used this? I am having a lot of trouble getting requests
 to actually send those headers to the server. I'm curious if anyone
 else has had experience with them. My problem is I cannot
 authenticate to our remote servers. Some of the servers use Basic
 Authentication and some use SOAP headers. I have been able to get it
 to work by getting the session id from SOAP and passing that as to the
 services that used basic. I had to turn off basic auth and just fail
 the request if there is not a valid session. Problem now is I have no
 session on this other server and need to get one created, but I cannot
 authenticate because there are no soap handlers and Flash cannot be
 basic without prompting the user. So I was looking at sending some
 authentication tokens as headers with the requests, but they are not
 arriving at the server.
 
 Paul





[flexcoders] Re: URLRequest.requestHeaders

2007-03-26 Thread Paul DeCoursey
Alright, ignore that, I was recycling the request object. So here is
the big issue.  I can make a call to this server and set some headers
that will get my session setup.  Then I reuse the same request with
the upload but I no longer have any session info.  What is going on
with these upload requests?  It does not share cookies from other
requests made.

Paul


--- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote:

 I am finding that sometimes it works and sometimes it does not.  From
 what I can tell is if I have done a FileReference.upload request
 recently in the app it does not send the headers. I'm not sure if it
 is recycling the request or what, I'm not recycling it myself anyway.
 I'm assuming that the limitation for sending headers is related to
 browsers and plugins so I'm not going to ask what's up with that.
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  There are restrictions on what headers can be set.  Check the docs
here
  to make sure you're OK:
 
http://livedocs.adobe.com/flex/201/langref/flash/net/URLRequestHeader.ht
  ml
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Paul DeCoursey
  Sent: Monday, March 26, 2007 10:12 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] URLRequest.requestHeaders
  
  
  
  Has anyone used this? I am having a lot of trouble getting requests
  to actually send those headers to the server. I'm curious if anyone
  else has had experience with them. My problem is I cannot
  authenticate to our remote servers. Some of the servers use Basic
  Authentication and some use SOAP headers. I have been able to get it
  to work by getting the session id from SOAP and passing that as to the
  services that used basic. I had to turn off basic auth and just fail
  the request if there is not a valid session. Problem now is I have no
  session on this other server and need to get one created, but I cannot
  authenticate because there are no soap handlers and Flash cannot be
  basic without prompting the user. So I was looking at sending some
  authentication tokens as headers with the requests, but they are not
  arriving at the server.
  
  Paul
 





[flexcoders] Re: URLRequest.requestHeaders

2007-03-26 Thread pgp.coppens
--- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote:

 Alright, ignore that, I was recycling the request object. So here is
 the big issue.  I can make a call to this server and set some headers
 that will get my session setup.  Then I reuse the same request with
 the upload but I no longer have any session info.  What is going on
 with these upload requests?  It does not share cookies from other
 requests made.
 
I had to work through the same or a similar problem. Perhaps you find
http://tech.groups.yahoo.com/group/flexcoders/message/68204 relevant.

Peter