HTTP Basic Authentication for URLRequest
After all the experiments, this is what I have got.
Om, as3httpclient isn't giving me a progress event(I need progress event to
write the downloading file data in chunks). I thought onData event would
give me progress, but it isn't. Is there any o
gt; sock.flush();
> }
>
> private function socket_dataHandler(event:ProgressEvent):void
> {
> //the tricky part, figuring out what to do with the raw data
> trace(socket.readUTFBytes(event.bytesLoaded));
> }
>
>
>
>
>
>
> -
> .
> --
> View this message in context:
> http://apache-flex-users.246.n4.nabble.com/HTTP-Basic-Authentication-for-URLRequest-tp9803p9927.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
visible, and probably defeat the purpose of requiring authentication in the
first place.
--
View this message in context:
http://apache-flex-users.246.n4.nabble.com/HTTP-Basic-Authentication-for-URLRequest-tp9803p9945.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
obile. In my case I'm doing
> it all through the desktop browser. I have not done this before in a mobile
> environment.
>
> Chris
>
> > Date: Thu, 26 Mar 2015 22:44:18 +0530
> > Subject: Re: HTTP Basic Authentication for URLRequest
> > From: megharajdee...@
) + "\r\n\r\n";
> socket.writeUTFBytes(httpRequest);
> sock.flush();
> }
>
> private function socket_dataHandler(event:ProgressEvent):void
> {
> //the tricky part, figuring out what to do with the raw data
> trace(socket.readUTFBytes(event.bytesLoaded));
&
apache-flex-users.2333346.n4.nabble.com/HTTP-Basic-Authentication-for-URLRequest-tp9803p9927.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
s was through mobile. In my case I'm doing
> it all through the desktop browser. I have not done this before in a mobile
> environment.
>
> Chris
>
> > Date: Thu, 26 Mar 2015 22:44:18 +0530
> > Subject: Re: HTTP Basic Authentication for URLRequest
> > From: meg
Oh wow! I did not realize this was through mobile. In my case I'm doing it all
through the desktop browser. I have not done this before in a mobile
environment.
Chris
> Date: Thu, 26 Mar 2015 22:44:18 +0530
> Subject: Re: HTTP Basic Authentication for URLRequest
> Fro
e type
> for remoteURLStreamer?
>
> Chris
>
> > Date: Thu, 26 Mar 2015 10:45:43 +0530
> > Subject: Re: HTTP Basic Authentication for URLRequest
> > From: megharajdee...@gmail.com
> > To: users@flex.apache.org
> >
> > Sorry, was away for sometime.
> >
Looking over your code. I wanna attempt to reproduce it. What is the type for
remoteURLStreamer?
Chris
> Date: Thu, 26 Mar 2015 10:45:43 +0530
> Subject: Re: HTTP Basic Authentication for URLRequest
> From: megharajdee...@gmail.com
> To: users@flex.apache.org
>
> S
ou can see if you can get data
in your request.
Chris
> From: chrsm...@outlook.com
> To: users@flex.apache.org
> Subject: Re: HTTP Basic Authentication for URLRequest
> Date: Thu, 26 Mar 2015 10:00:44 +
>
> > I think flash player is trying to be consistent by disallowin
> I think flash player is trying to be consistent by disallowing such headers.
Yep, majority of the time flash player will strip any custom headers you set.
However, in the case of a POST request with data in the body, you can supply
your own custom headers.
I did notice in your screen captur
On Mar 25, 2015 10:16 PM, "Deepak MS" wrote:
>
> Sorry, was away for sometime.
>
> I ran it through network monitor in FB.
> Screenshot: http://pasteboard.co/25kUwXgR.png
>
> Looks like header is not passed at all.
>
> Code:
> var req:URLRequest = new URLRequest(pathRemote);
> req.
Sorry, was away for sometime.
I ran it through network monitor in FB.
Screenshot: http://pasteboard.co/25kUwXgR.png
Looks like header is not passed at all.
Code:
var req:URLRequest = new URLRequest(pathRemote);
req.method = URLRequestMethod.POST;
req.data = new UR
Yeah, a network packet log would be a huge help. Then you can rule out whether
or not the Authorization header is present in your request or not. I use
fiddler[1] all the time. Also it makes it easy to detect if something else went
wrong at the server side like your authentication request fai
: users@flex.apache.org
Subject: Re: HTTP Basic Authentication for URLRequest
Any help on this please? I still haven't found any solution for this. I
keep getting username\password prompt on the simulator. ;(
On Mon, Mar 16, 2015 at 7:30 PM, Deepak MS wrote:
> Hello,
> I'm trying to
Do you have a network packet log ?
Tom
On 24/03/15 04:25, Deepak MS wrote:
Any help on this please? I still haven't found any solution for this. I
keep getting username\password prompt on the simulator. ;(
On Mon, Mar 16, 2015 at 7:30 PM, Deepak MS wrote:
Hello,
I'm trying to download a fil
Any help on this please? I still haven't found any solution for this. I
keep getting username\password prompt on the simulator. ;(
On Mon, Mar 16, 2015 at 7:30 PM, Deepak MS wrote:
> Hello,
> I'm trying to download a file from the server which requires basic
> authentication(need to enter user n
Hello,
I'm trying to download a file from the server which requires basic
authentication(need to enter user name and password to access).
I came across these links:
http://stackoverflow.com/questions/509219/flex-3-how-to-support-http-authentication-urlrequest
http://johncblandii.com/2011/07/flex-
19 matches
Mail list logo