<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Abdul Qabiz's Blog from India - Latest Comments in HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://abdulqabiz.disqus.com/</link><description>Abdul Qabiz on Web Technologies, Flash Platform, RIA, India - a developer and entrepreneur, from Kanpur, India, on web technologies, software, technologies, electronics, adobe flash platform (flex, flash, air), web, open source, linux, free software, usability, startups, etc.
</description><atom:link href="https://abdulqabiz.disqus.com/http_authentication_for_httpget_requests_using_actionscript_3/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 11 Aug 2013 10:25:25 -0000</lastBuildDate><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-996379988</link><description>&lt;p&gt;i want to use custom headers like ("X-HEADER-1", "123456789"), ("X-HEADER-2", "abcdefghi"), so i change&lt;/p&gt;&lt;p&gt;var authHeader:URLRequestHeader = new URLRequestHeader("Authorization","Basic " + credentials);&lt;br&gt;to&lt;br&gt;var authHeader:URLRequestHeader = new URLRequestHeader("X-HEADER-1","123456789");&lt;br&gt;var authHeader:URLRequestHeader = new URLRequestHeader("X-HEADER-2","abcdefghi");?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wuiyang</dc:creator><pubDate>Sun, 11 Aug 2013 10:25:25 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-618126696</link><description>&lt;p&gt;Great, thanks you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nuwaus</dc:creator><pubDate>Mon, 13 Aug 2012 12:00:07 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-218972833</link><description>&lt;p&gt;&lt;br&gt;  Thanks&lt;br&gt;  for information, I'll always keep updated here!&lt;br&gt; &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">designer pendant lights</dc:creator><pubDate>Mon, 06 Jun 2011 05:28:05 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-92747044</link><description>&lt;p&gt;That happens to be a particularly interesting and targeted piece of writing. Though my opinion may differ from that of the writer, I know that that is great webpage. I will certainly join Feed for this fantastic and distinctive blog website.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Fly Ruby</dc:creator><pubDate>Mon, 01 Nov 2010 13:13:58 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-90680704</link><description>&lt;p&gt;Its works !!! &lt;br&gt;I need change only this :&lt;br&gt;var credentials:String = Base64.encode(email + ":" + password);&lt;/p&gt;&lt;p&gt;TO -&amp;gt;&lt;/p&gt;&lt;p&gt;var encoder : Base64Encoder = new mx.utils.Base64Encoder();&lt;br&gt;encoder.insertNewLines = false;&lt;br&gt;encoder.encode(email + ":" + password);&lt;/p&gt;&lt;p&gt;var credentials:String = encoder.toString();&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Malvakian</dc:creator><pubDate>Wed, 27 Oct 2010 03:34:41 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-64977336</link><description>&lt;p&gt;that's really useful &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Motion Sensor Camera</dc:creator><pubDate>Wed, 28 Jul 2010 19:44:49 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-44795845</link><description>&lt;p&gt;Flash Player has some security sandbox restrictions, which doesn't allow you to connect to any arbitrary port. If you want to connect ports lower than 1024, you need to have a socket-policy-file. Unfortunately, bloglines doesn't have that, hence connecting to &lt;a href="http://rpc.bloglines.com" rel="nofollow noopener" target="_blank" title="rpc.bloglines.com"&gt;rpc.bloglines.com&lt;/a&gt;:80 would not work.&lt;/p&gt;&lt;p&gt;Socket Policy Documentations:-&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_04.html" rel="nofollow noopener" target="_blank" title="http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_04.html"&gt;http://www.adobe.com/devnet...&lt;/a&gt;&lt;br&gt;&lt;a href="http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html" rel="nofollow noopener" target="_blank" title="http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html"&gt;http://www.adobe.com/devnet...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;This was one of the reasons, I didn't release my bloglines actionscript library, which was the main reason for creating HTTPURLLoader (as3httpclient - &lt;a href="http://code.google.com/p/as3httpclient" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/as3httpclient"&gt;http://code.google.com/p/as...&lt;/a&gt; )&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Abdul Qabiz</dc:creator><pubDate>Wed, 14 Apr 2010 17:05:46 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-44704857</link><description>&lt;p&gt;I am getting error while running the example. error is:&lt;/p&gt;&lt;p&gt;Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file://C:\Documents and Settings\u21743\My Documents\Flex Builder 3\HTTPURLLoader_V2\bin-debug\HTTURLLoader_Simple_Test.swf cannot load data from &lt;a href="http://rpc.bloglines.com" rel="nofollow noopener" target="_blank" title="rpc.bloglines.com"&gt;rpc.bloglines.com&lt;/a&gt;:80.&lt;br&gt;Error #2044: Unhandled ioError:. text=Error #2031: Socket Error. URL: &lt;a href="http://rpc.bloglines.com" rel="nofollow noopener" target="_blank" title="rpc.bloglines.com"&gt;rpc.bloglines.com&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Please suggest me.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rajeswarimypati</dc:creator><pubDate>Wed, 14 Apr 2010 04:26:20 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-24764658</link><description>&lt;p&gt;I have always used 'xmlns:mx="&lt;a href="http://www.adobe.com/2006/mxml" rel="nofollow noopener" target="_blank" title="http://www.adobe.com/2006/mxml"&gt;http://www.adobe.com/2006/mxml&lt;/a&gt;" ' instead of&lt;/p&gt;&lt;p&gt;'xmlns:mx="&lt;a href="http://www.macromedia.com/2005/mxml" rel="nofollow noopener" target="_blank" title="http://www.macromedia.com/2005/mxml"&gt;http://www.macromedia.com/2...&lt;/a&gt;"' .And the later one doesnt produce a result also.. can you suggest .. &lt;br&gt;And one more thing is , i 'm not able to ship a weather webservice out side flex builder .Its giving 'security error accessing url' . Even i ahve added crossdomain policy file also&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">suprasannachoudhury</dc:creator><pubDate>Fri, 04 Dec 2009 00:35:53 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-24604593</link><description>&lt;p&gt;Yes, I think you might be right. I know about flash.net.FileReference class and I have used earlier in my code.&lt;/p&gt;&lt;p&gt;I have tried to use JScript but I am not an expert in that. I am planning to use Java/.Net code with Flex Remoting.  If you don't mind could you give me a sample on JScript which creates/deletes a file. This will really help to avoid the dependencies.&lt;/p&gt;&lt;p&gt;Thanks,&lt;br&gt;Ravi Shankar&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ravi Shankar</dc:creator><pubDate>Wed, 02 Dec 2009 11:37:18 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-24600152</link><description>&lt;p&gt;Hi Ravi&lt;/p&gt;&lt;p&gt;As far as I know, Flash Player 10 allows local file access (read-only). You can prompt user to browse a file and content of that can be read in actionscript. I don't think, you can write to client machine without using any signed-code (applet, activex, javascript, etc).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Abdul Qabiz</dc:creator><pubDate>Wed, 02 Dec 2009 10:57:26 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-24600151</link><description>&lt;p&gt;Hi Ravi&lt;/p&gt;&lt;p&gt;As far as I know, Flash Player 10 allows local file access (read-only). You can prompt user to browse a file and content of that can be read in actionscript. I don't think, you can write to client machine without using any signed-code (applet, activex, javascript, etc).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Abdul Qabiz</dc:creator><pubDate>Wed, 02 Dec 2009 10:57:26 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-24594621</link><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Excellent, I am new to FLEX n I am doing a project while learning. This example was really helped me as my situation required this solution.&lt;/p&gt;&lt;p&gt;I need to access local filesystem using FLEX web application, could you help me out to solve this problem or any alternative solution will be appreciated. As I know FLEX (WEB) should not support filesystem access.&lt;/p&gt;&lt;p&gt;Thanks a lot,&lt;br&gt;Ravi Shankar&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ravi Shankar</dc:creator><pubDate>Wed, 02 Dec 2009 09:35:53 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-22140050</link><description>&lt;p&gt;i am trying to upload files using fielreference.upload(). how do i use basic authentication using as3 script i dont find Base64 in as3 api.&lt;/p&gt;&lt;p&gt;i have gone through the livedocs help . its mentioned that with filereference , urlrequestheader does not work . is that true.&lt;/p&gt;&lt;p&gt;i cant use u r example because i dont find api classes.&lt;/p&gt;&lt;p&gt;abdul please help me &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">venkatn</dc:creator><pubDate>Sat, 07 Nov 2009 13:24:10 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-20603697</link><description>&lt;p&gt;nice work....  very useful.... &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">marc</dc:creator><pubDate>Mon, 19 Oct 2009 23:04:40 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-16178450</link><description>&lt;p&gt;I need the code for HTTP POST and GET. i basically what to send a url to server and check the status,display the response by server…..and calculate the time taken to get the response.&lt;br&gt;I am using cs4/actionscript 2.0&lt;/p&gt;&lt;p&gt;can you help me……&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ab</dc:creator><pubDate>Thu, 20 Aug 2009 02:11:59 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-16178449</link><description>&lt;p&gt;@zeeshan: Did you try adding it to headers object? What error you get? I know, Flash Player doesn't let you add/override many http-headers. As far as I know, none of headers (user_agent, user_agent_id) is standard http header, hence it should work.&lt;/p&gt;&lt;p&gt;Please note, user-agent is a standard http header, if you are using user-agent, you might not be able to do that. Kindly check the list of http headers Flash Player doesn't let developers override.&lt;/p&gt;&lt;p&gt;-abdul&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Abdul Qabiz</dc:creator><pubDate>Tue, 09 Jun 2009 06:41:40 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-16178448</link><description>&lt;p&gt;Hi Abdul,&lt;/p&gt;&lt;p&gt;is it possible to add a custom header user_agent in httpservice?&lt;br&gt;i had &lt;a href="http://API.as" rel="nofollow noopener" target="_blank" title="API.as"&gt;API.as&lt;/a&gt; class which requires a post method with custom header user_agent and user_agetn_id. i can add user_agent_id but i got ArgumentError on user_agent.&lt;br&gt;can u please advise any solution?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zeeshan</dc:creator><pubDate>Mon, 08 Jun 2009 14:10:25 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-16178447</link><description>&lt;p&gt;@David&lt;br&gt;I guess, it's part of as3corelib (&lt;a href="http://code.google.com/p/as3corelib/)" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/as3corelib/)"&gt;http://code.google.com/p/as...&lt;/a&gt;&lt;br&gt;Thanks&lt;br&gt;-abdul&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Abdul Qabiz</dc:creator><pubDate>Wed, 01 Apr 2009 09:01:56 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-16178446</link><description>&lt;p&gt;Abdul:&lt;br&gt;The as3httpclientlib requires com.adobe.net.URI, but, this is not documented as to where to obtain this library.  It's not in Flex, it's not AIR only?&lt;br&gt;Seems this would be noted somewhere on the examples/docs, as the package seems unusable without this code.&lt;br&gt;Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David W</dc:creator><pubDate>Tue, 31 Mar 2009 18:19:15 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-16178445</link><description>&lt;p&gt;Hi Guys&lt;br&gt;This code was written long time back, things have changed a lot in Flash Player after that. Some of the headers were not allowed in some intermediate player releases, it seems Flash Player 10 has got those fixes.&lt;br&gt;However, I am not still not sure one can do HTTP Auth over HTTP/GET in Flash Player 10.&lt;br&gt;There is better library available now at &lt;a href="http://code.google.com/p/as3httpclientlib" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/as3httpclientlib"&gt;http://code.google.com/p/as...&lt;/a&gt;, you might want to use it instead.&lt;br&gt;I have stopped updating this code, after I noticed as3httpclientlib is good stuff.&lt;br&gt;Sorry for delays in my reply, been stuck and shame on me, couldn't be of any help when you needed.&lt;br&gt;Thanks&lt;br&gt;-abdul&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Abdul Qabiz</dc:creator><pubDate>Fri, 06 Mar 2009 15:27:57 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-16178444</link><description>&lt;p&gt;Thank you for writing this very useful code, Abdul!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Haugh</dc:creator><pubDate>Thu, 12 Feb 2009 14:01:47 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-16178443</link><description>&lt;p&gt;Hey,&lt;br&gt;I did a modification on your class to get Basic Authentication working.&lt;br&gt;The command request.requestHeaders.push(authHeader) causes an Error since it is not allowed to set the keyword Authorization any more.&lt;br&gt;The solution I used was to let the constructor recieve a URLRequest object the same way as before, but the load method now recieves an Array of Strings instead. Each string in the format HeaderName:HeaderValue.&lt;br&gt;I then adjusted your sendHeaders method to fetch the headers from the array instead. Worked fine, even with Authorize.&lt;br&gt;If you wanna talk about it, drop me an email.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sigfrid Lindhe</dc:creator><pubDate>Tue, 26 Aug 2008 06:15:21 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-16178442</link><description>&lt;p&gt;Hi cody,&lt;br&gt;I have tried using ordinary serv.headers['Authorization'], but It didn't work with me when method is "GET" !!&lt;br&gt;Can you send the full httpservice code you made ?&lt;br&gt;Thanks in advance&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mahmoud Khaled</dc:creator><pubDate>Sun, 10 Aug 2008 08:16:31 -0000</pubDate></item><item><title>Re: HTTP Authentication for HTTP/GET requests using ActionScript 3</title><link>http://www.abdulqabiz.com/blog/archives/2006/03/03/http-authentication-for-httpget-requests-using-actionscript-3/#comment-16178441</link><description>&lt;p&gt;Hello everyone&lt;br&gt;I am trying to use a MapPoint web service for virtual earth maps via Action script 2.0.&lt;br&gt;1.) How do we do digest authentication in action script 2.0. Can someone provide me an example or code sample ?&lt;br&gt;2.) MapPoint service exposes complex objects to deal with Route calculation etc.. ? Can Webservice class in AS 2.0 access such complex type objects ? What is the work around ?&lt;br&gt;3.) Is Flash remoting better to talk to web services than the webservice class and XML connector?&lt;br&gt;Thanks,&lt;br&gt;Ridibona&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ridibona</dc:creator><pubDate>Sun, 13 Jul 2008 19:11:27 -0000</pubDate></item></channel></rss>