ActionScript 3.0 :: Custom User Agent For HTTP Requests?

May 29, 2010

To put it short, I have an MP3 player on my website coded in flash which plays MP3 files located on my server. What I want to do is give my flash player its own user agent, then in my .htaccess file I will deny the MP3 extension to everything except that user agent. I already have an idea planned using PHP to pass the user agent to flash (to stop reverse engineers getting user agent).

To cut a short story shorter: Is there any way that I can change the user agent flash uses on HTTP requests?

View 2 Replies


Similar Posts:


Android :: Flash Player Doesn't Work When Setting A Custom User Agent In WebView

Jun 20, 2011

I am trying to use the Flash + Set the browser to a desktop agent on the Galaxy Tab.

mWebview.getSettings().setUserAgentString("Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.11) Gecko/20101019 Firefox/3.6.11");
mWebview.getSettings().setPluginsEnabled(true);

So the issues is, when the UserAgentString param is enabled, flash player wont load as many websites like Iplayer don't recognise the browser in the WebView.

This may be a bug in the Samsung browser. Anyone have any desktop agents that the WebView will accept whilst enabling flash?

View 1 Replies

Actionscript 3 :: GET Requests With HTTP?

Oct 11, 2011

Unfortunately, Flash Player doesn't support using request headers with GET requests, as noted here, due to what Adobe terms "browser limitations": Due to browser limitations, custom HTTP request headers are only supported for POST requests, not for GET requests. That means I need to create my own HTTP socket class from scratch and find a way to run a policy server on the machine I'll be querying. Hooray.If I want to make a simple GET HTTP request with HTTP-Basic auth headers, what do I need? I'd need something like

socket.write("HTTP GET REQUEST PAYLOAD HERE");
socket.flush();

What do I put in the write method to compose a GET request?

View 1 Replies

ActionScript 3.0 :: Security In HTTP Requests And Posts?

Nov 13, 2010

there is an issue i am curious about very much. when i develop a flash application or web site, http posts and requests, links etc.. everything can be seen with add ons. what do you suggest for this issue? i cannot find any good solution, what solutions to be used generally?

View 13 Replies

Flash :: HTTP Requests Won't Work On Localhost

Jun 11, 2010

First off, I'm trying to fix something that I didn't build to begin with and the guy who's project it was assures me it was working fine when he left, although a version I haven't touched since he left seems to have the same issues. I'm also a bit new to programming in general so let me know if I've left out important information in my first post and I will try to add more info.

I have a flash application hosted on-line that acts as a client for a server application written in Delphi. Most of the communication is done using sockets, which work fine. Uploading data files and downloading results files is done using HTTP requests, which work fine as long as the user is making use of an instance of the server on another computer. However, if the user has the server application installed on their own computer and attempts to use it specifying localhost as the url, the socket communication still works, but the HTTP requests don't.

All the socket based communication works fine and, when it is not on the localhost, all the HTTP requests work fine as well, which is why this is so mystifying to me. I've tried changing the flash cross-domain policy file that the server dispatches to be completely permissive, all ports, all domains, all http-request-headers, and still no luck. The Flash app will sit waiting for localhost indefinitely most of the time until I close the server application, and then give this error message:

[Code]...

View 1 Replies

Actionscript 3 :: HTTPS Vs HTTP Requests From Flash

Oct 16, 2011

I am finding that if I load Flash from a HTTPS page [URL] and try to make a request within ActionScript 3 to [URL] the request does not go through. Same goes for the opposite (accessing https from a http-loaded flash script).

The request is failing, the requested data (passed from a PHP script) is not loading.

Now at first I assumed the trouble was with cross-domain policy files, but I have fixed that issue (I think).

Is there any security policy in Flash (CS5 btw) on HTTP vs HTTPS requests based on where the script is loaded from?

View 1 Replies

Flex :: Block Http Requests To Some Web-pages From Adobe Air

Jan 20, 2010

Is it any way to prevent user to go to specific web-pages using Adobe AIR framework.I want this software to run at startup and not allowing user to surf some web parts.I want to use Adobe AIR beacause of its crossplatform capabilities.

View 1 Replies

Ajax :: View Response Content Of Flash HTTP Requests?

Aug 28, 2010

I'm interested if there is some tool (preferably a firefox addon) that allows you to record http requests and view their response header and content.

View 3 Replies

ActionScript 3.0 :: Socket Connection Making HTTP Requests Hang?

Sep 19, 2011

I'm having a problem that I'm not sure is necessarily tied to the Flash, but I don't know what the root of the problem is yet.I have a SWF that connects to a socket using the Socket class. This works fine.I'm also making (jQuery) $.getJSON() requests to load certain page data. This works fine.

However, when the Flash socket is connected the Ajax requests stop being sent. By this I mean that it seems that the HTTP requests being made are stored in a queue while the socket is connected. As soon as I disconnect from the socket the HTTP requests continues to load fine. The HTTP request never times out (as it's not even being sent to the server), but just hangs there waiting...until I close the socket connection.

I've verified both in the jQuery and Adobe docs that both the Ajax (JSONP) requests and the connections using the Socket class are asynchronous, so I'm really confused as to why the socket connection would block the HTTP requests.

View 0 Replies

Python :: Flash - Handle Faults/exception In Flex In Http Requests?

Mar 15, 2012

Here is an issue i'm struggling to solve for quit some time now.I have a python + GAE backend with a flex client that communicates via JSON. I'm using flex's HttpService bound to a Responder with result and fault callbacks. When python raises an exception, I don't seem to get it in flex. I did some research and found out that the problem probably lies in the fact that the flash runtime cannot handle http responses with status code other than 200.

View 1 Replies

Actionscript 3 :: Http Web Requests From Flash Are Timing Out Or Or Never "returning"

Feb 21, 2011

I run a facebook game that makes http web requests to my server using AS3's URLRequest and URLLoader classes, then takes the json data that the server spits back and and processes it it, etc etc.. Lately I've had users complaining about server requests that never come back. They perform and action and the game just kinda hangs there waiting for a response indefinitely. If it were just every now and again I would blame it on the server just dropping the ball every so often, but some users complain about having this problem consistently at the same exact spot, while others don't get it at all.

The part that bothers me the most is that no matter what I do I cant reproduce the issue that they are having. How can I diagnose this issue without being effected by it? I'm stumped. what might be going on, or anything that I can do to get more information on what might be happening?

View 1 Replies

Php :: Flash HTTP Requests URL Containing RTMPE URL - Get A Local Copy Or A Copy With Content?

Oct 7, 2011

A web channel streaming service streams to a certain IP range, it only checks the IP in example.com/cmd.php?id=xxx (channel number) and outputs an rtmpe stream URL, nothing else.How do I trick it to get my local URL instead of the one on their server? I have considered squid proxy, but is there some way to do it with a firefox plugin or greasemonkey script?

Edit:I will try to specify:It's a streaming service from an ISP and cable provider. They stream for free to people on their IP's. On their webtv page, which is called webtv.example.com, there is a flash player. If you are not on an IP from their ISP, you can't stream anything but the test channel.When you try to change channel via. javescript:videoplayer_changechannel(xxx) it makes this HTTP request:

[URL]

If you are on one of their IP's you will get an RTMP URL, like this:

[URL]

This is what the flash player requests, and if it get's this response it load the channel requested. There is no HTML on the php page, just the URL. Note that the rtmp URL is static.If you are not on one of their IP's it will return a random sentence (something stupid, the programmers having fun).I wan't to trick the flash player into getting the right value, even though it's not on one of the ISP's IP's.

View 1 Replies

Flash - Create A Custom HTTP Protocol In Delphi?

Dec 16, 2009

I build a project using Flash and Delphi. In Flash i need communication with delphi. Current i use ExternalInterface and FSCommand. Now i need Flash communication with Delphi via HTTP but it need open a custom port on Delphi and it can prevent by user's firewall. I see a product called F-IN-BOX it can implement HTTP link like [URL]

View 3 Replies

MX04 Flash Mp3 Player Agent Names?

Mar 6, 2010

I have been working on a Simple Mp3 Player. And have done ok so far. The thing i am having trouble with is to do with The Agent names that are given to Flash Mp3 Players. Some mp3 players have very specific Agent names (I dont know if agent names are something that is common in Flash so i will explain)

When streaming an mp3 player, The Shoutcast server that is sending the stream, will be getting feedback on Who is listening, i.e. what port there listening from and the current location, but the other thing that is given is the Mp3 Player they are using to listen to the stream.

View 1 Replies

ActionScript 3.0 :: Make Object(agent) Move In Map?

Jan 23, 2011

Actually i am doing project called multi agent system whereby the agent will based on behavior(declared and defined by ourself) to move in the map. The map consists of buildings, roads, infrastructures and others. i have finished those buildings and roads.

View 2 Replies

ActionScript 3.0 :: Set Movement For Agent In Mini Map (grid Mode)

Dec 8, 2010

i having troublesome with the flash map.Actually i am doing the project which is multi-agent system (agents behave like human react in the map and have behavior just like human). i am one of the members of this project, i responsible for the mini map and i am using flash to do map. I have seen the examples of Pacman flash game and racing flash game(they used action script 2.0). i got the ideas after watched their coding.can i set the movement using matrices??

View 0 Replies

Python :: Flex Application - Custom User Authentication?

Jul 27, 2010

I'm using Google Engine App with Python. I want to add custom user authentication. How is it done, with the best practices? I want custom authentication because the app is built in Flex and I don't want to redirect to an HTML page.

The user value object is like this:
class User(db.Model):
email = db.EmailProperty(required = True, indexed = True)
masked_password = db.StringProperty(required = True)
# maybe more things here

I would like to mask the password, is there some built in function in GAE? Then, how I will remember the current user? Through sessions and cookies? Or what else?

View 2 Replies

ActionScript 3.0 :: Custom Font - User To Be Able To Select The Text?

Jul 27, 2011

ok so i have drawn some letters up, this way i can have everything looking just the way i like. i was going to put it in as an image but then it hit me, what if i wanted the user to be able to select the text? so i wanted to ask if there was a way you could make it act like a textfield. i was thinking it finds the character value and gives a value of 1-26. 1 being a and 26 being z. then it adds the movieclip to stage, changes to the frame relying on that value i just mentioned and positions itself accordingly.but what i haven't thought of yet is how you'd make it selectable.

View 4 Replies

ActionScript 2.0 :: Getting Custom Cursor To Act Opposite User Interaction?

Apr 13, 2006

Is it possible to get the custom cursor MC to act opposite the users actions? I want it to be opposite the center of the stage, lets say the real mouse cursor is 200px to the RIGHT of the center of the stage, but the custom mouse cursor is 200px to the LEFT... get it? And the same goes for the y coordinates. I gave it a try, but can't seem to get it right, math never was my strong side

View 3 Replies

Flash :: Read A Http Response Body When Tyring To Read Http Via Tcp Socket?

Feb 19, 2011

So I want to read http streams using flash tcp sockets. I do not really need the http header at all - all I need is body which contains flv. so how to read http response body into byte array using flash sockets?

View 1 Replies

Http :: Get The Http Request URL?

Sep 22, 2010

a.swf is loaded in a.html which is hostedI want to know, if user browses[URL]

View 1 Replies

See Network Requests Made By A Swf?

Jun 30, 2010

I have a swf (flash file) who is making http request.

Which is the easiest way to see what request the flash application is doing?

P.S. I do not have the program as a fla file

View 4 Replies

ActionScript 3.0 :: Listening For Php Requests?

Apr 3, 2009

Can flash player listen to php requests (without specifying from which php file the requests are arriving ?)

In other words, I need a listener for php events. Maybe with the help of javascript?

View 6 Replies

ActionScript 2.0 :: CS3 Various If CurrentFrame Requests Not Really Working?

Jan 2, 2011

I'm havin 5 button MC's (btn1-5 with animation) in a navi MC also there is a contentHome MC where all my content is. Above my content is a mask which fades the content in and out again.So now I'm trying to tell every button what to do, here's the code I'm using e.g. btn1 which is the home button.[code]but for some strange reasons it's not really reacting to my bio, music, and gallery commands, it keeps running the last command (booking).I must admit I just started using if-commands and all that stuff so I'm kinda new to these things, but I think flash only reacts to the last command and delets the others, because I did something wrong in my code writing, but what is it?

View 1 Replies

Flex :: Multiple HTTPService Requests With AIR

Nov 17, 2009

I am developing an AIR application with Flex Builder that requires me to make two HTTPService requests at the same time. They both use different instances of the HTTPService AS3 class. Both services are calling a RESTful API which is currently running on my localhost (XAMPP) and takes a few seconds to respond (much quicker on live server). The problem is that most of the time one of the calls fails, however occasionally they do both work. Its also random as to which call will fail. Both calls use code something like this. This code is basically repeated in two classes.

[Code]....

View 3 Replies

Flex :: Can Do Conditional GET Requests From Flash / AS?

Feb 19, 2010

I have a Flex client that loads data from a server to display a chart. This data may change, so the client regularly repeats the request. Since the result may require some work to retrieve, I'm going to have the server detect if the result has changed, and issue a 304 status if it hasn't.I haven't seen any headers in the Flash Player's requests which would indicate that it's already handling conditional GETs. Also, the HTTPService API doesn't seem to provide anything, either. Does that mean, Flash can't do this, or how can I implement this myself?

With regards to cookies, which aren't supported in Flash, I have heard the suggestion to build my own HTTP client on top of the Socket class. This might solve this issue, too, but frankly, I'm really not keen on doing that.As an alternative, I could just cache the result page and send it again, but so far, the API tries to utilize semantics that are already built into HTTP, and I'd like to keep it that way.

View 2 Replies

Php :: Process AJAX Requests More Securely ?

Mar 19, 2010

I want to send AJAX requests to my website from my Flash games to process data, but I don't want people downloading them, decompiling them, then sending fake requests to be processed, so I'm trying to figure out the most secure way to process in the PHP files. My first idea was to use Apache's built in Authorization module to require a username and password to access the pages on a separate subdomain of my website, but then you'd have to include that username and password in the AJAX request anyway so that seems kind of pointless to even try.My current option looks pretty promising but I want to make sure it will work. Basically it just checks the IP address being sent using REMOTE_ADDR to make sure it's the IP address that my server runs on.

<?
$allowed = new Array("64.120.211.89", "64.120.211.90");
if (!in_array($_SERVER['REMOTE_ADDR'], $allowed)) header("HTTP/1.1 403 Forbidden");
?>

Both of those IP addresses point to my server. Things I'm worried about:

1) If I send a request from Flash/ActionScript, will that affect the IP address in any way?

2) Is it possible for malicious users to change the IP address that is being sent with REMOTE_ADDR to one of my IP addresses?

View 3 Replies

Flash - How To Make Synchronous URL Requests From AS

Sep 13, 2010

I have a big loop in actionscript that sends lots of data to an url:
for(var i=0;i<1000;i++) {
var request:URLRequest = new URLRequest();
request.url = url;
request.method = URLRequestMethod.POST;
request.data = data;
var loader:URLLoader = new URLLoader();
loader.load(request);
}

The problem is because URLLoader can make only asynchronous calls, it sends all those thousands requests at once which kills webserver. Also it acts a bit strange on top of that. Lets say the loop is running for 5 minutes. For whole 5 minutes there is no requests coming to web server, then at the end they all are sent at once. I already tried everything I could possibly think of (empty loops, callbacks, delays) - nothing works. All requests are sent at once no matter what. How to make requests synchronous, so it will send one request after another?

View 1 Replies

ActionScript 3.0 :: Detect Bad Requests From App To Server?

Oct 7, 2010

I can modify my PHPRequest object so that it can detect and handle errors from my webserver? Normally after each of my successful requests, it dispatches that event which I listen for and then I can handle the data in the resultArray. During these times I notice I'm receiving a HTTP STATUS of 200 in my http status handler.

View 0 Replies

ActionScript 3.0 :: Catch Some External URL Requests?

Oct 12, 2010

Is it possible to catch some external URL requests from loaded swf?

I have loader swf in which I need to load another swf. Those swf files I load are extarnal and I don`t have fla sources.

There is one large *.swf community which allows *.swf creators to upload their swfs. However, that should be packed swfs in one file, with no external script requests.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved