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


Similar Posts:


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

Python :: Retrieve HTTP POST Request Parameters (sent From Flex App)?

Jan 25, 2011

I am sending the parameters from flex application through HTTP POST request to Python/PSP script. I am able to call PSP script from flex app using HTTP POST request, but i am not able to use/retrieve these parameters in Python/PSP

View 1 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

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

C# :: Handle Http Fired By Flex In Server?

Jan 22, 2012

I am trying to send a simple HTTP message from Flex to C# server, but it seems that I am getting tow calls, first is the real one and the second is an empty one.

Why is that and how can I handle it?

This is my C# code:

TcpListener listener = new TcpListener(IPAddress.Any, 9400);
listener.Start();
Console.WriteLine("Server started");

[Code].....

I been trying to send a true HTTP response a notice another thing, the second call is coming without waiting for the first call, if I am putting the response thread to short sleep(100 milliseconds in my test) then I am getting the second call before I been able to response for the first one.

View 3 Replies

Java :: Handle Custom Java Exception In Flex App?

Mar 18, 2010

we are using BlazeDS as a proxy between Flex and Java. The approach is the same as in

[Code]...

View 3 Replies

ActionScript 3.0 :: Best Way To Handle Multiple URL Requests?

Aug 31, 2009

Any best way to handle multiple URL requests. This is what I have:
Code:
function dropCick(evt:MouseEvent):void {
if(evt.target == dropDownM.dropBtns_mc.menFoot_btn) {
var URL_6:URLRequest = new URLRequest();
URL_6.url="[URL]";
navigateToURL(URL_6,"_self");
[Code] .....
I would think there would be a better more efficient way to do this.

View 4 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

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

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

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

Flex :: Wrap Java Exception Into Exception?

Jun 16, 2010

I am using spring exception translator to wrap java exception into flex exception.
eg

public void testException()throws Exception{
throw new Exception("my exception");
}

But for some reason, I am getting IllegalAccessError. The code sections are entering the testException and the Translator class.

Question: why it trying to get log target level ?

Below is the lines from the log:

[Code].....

View 1 Replies

Python :: Pass Data From Google App Engine(Python) To Flex 4 Application?

Feb 22, 2010

I am using python and webapp framework in app engine for backend and flex 4 for front end.I would like to pass a string form backend to front end, so i write the following code in the main.py:

[Code]...

View 3 Replies

Python :: Configure The Flex Crossdomain.xml In Python Google App Engine Sdk?

Feb 14, 2011

I have created a flex application in the Python Gae sdk and I got the error 2048, so I put a crossdomain.xml under the static folder.
The crossdomain.xml is following:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy> [code].....

However, I still got the error 2048. Therefore, I would like to know is anything I need to configure or miss in my case and how to fix the error.

View 2 Replies

Python :: Flash - Python FLV Checker - Check The Uploaded Files To Webserver Are Flash Media (FLV), By Reading The Flv Header?

Jul 27, 2010

i need a simple python lib that check the uploaded files to my webserver are flash media (FLV), by reading the flv header (metadata) and not the mimetype extension.

View 1 Replies

Python :: Strange Behavior Of Sockets In Python (3.2). Client Connects To Application Using Flash?

Jul 14, 2011

I experience strange behavior of sockets in Python (3.2). Client connects to my application using Flash. Most of the time there is nothing unusual but sometimes python crashes in a way that should not have taken place - enter into infinite loops. Below I attach to the loop code and error message in the log. Python hang on bytesRecived = sock.recv(64) and receive b'' witch is visible in log.

code:
try:
buff = ''

[code].........

View 1 Replies

Python :: Adobe Flash And Hosting The Player With Python And WxWidgets?

Jun 15, 2011

Does Adobe Flash expose any Automation or hosting interfaces through COM or a DLL in %systemroot%system32? I'm working with Python and wxWidgets to host a flash application to monitor lunar phases.

View 1 Replies

Python :: Flash - Use SWF File To Import In Python Web Application?

Aug 7, 2010

i develop one project on python and upload on google app can i use swf file to import in python web application?

View 1 Replies

Python :: Flex - "embed" A Python Back-end In An AIR Application?

Sep 21, 2009

I'm trying to find out if there is a way I could embed a Python back-end into an AIR application? I'm looking to employ an approach similar to the one outlined here to implement the business logic for my application, but additionally, I would like to provide the user with a single binary which they can load. I don't want the user to have to fire up a seperate server process to make this work.

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

ActionScript 2.0 :: Flash Scrollbar Gallery - Replace The Rectangular Handle With Own Customised Handle

Feb 6, 2010

I'm creating a scrollbar gallery from a tutorial on this site. Though I've completed the tutorial, and customised the gallery to my own needs, however I'm trying to make a very small change to it - and no matter what I do, keep running into problems. I'm trying to replace the rectangular handle with my own customised handle - a (20 x 20) 'circular' png image that I've imported into Flash, made a graphic and stored in the library (though I understand it can be imported using actionscript, like the other images in the gallery).

[Code]....

View 7 Replies

Python :: Calling ActionScript From Python?

Apr 12, 2011

If swf file is embedded in html it is easy to call ActionScript methods via ExternalInterface using JavaScript. Now I want to use the swf file outside of a browser and still be able to access its methods, but now I want to use Python to call ActionScript. Is it possible? There is so little information about it in the Internet. Probably I can use AMF (pyAmf) for this, can I?

View 2 Replies

Flex :: Can't Understand The Exception?

Dec 30, 2009

I was trying the flickr code provided in the learnwebsite, and I am getting this exception:

[RPC Fault faultString="Error #1090: XML parser failure: element is malformed." faultCode="Client.CouldNotDecode" faultDetail="null"]
at mx.rpc.http::HTTPService/http://www.adobe.com/2006/flex/mx/internal::processResult()

[code].....

View 3 Replies

Flex :: Exception When Extending A Component?

Aug 2, 2009

when extending a flex component and trying to use it, I get a RTE. I.e. I am extending a DataCanvas and am using it like this:

<MyComponent dataProvider="{dataProvider}" width="100%" height="100%" x="0" y="0" id="dc" verticalCenter="0" horizontalCenter="0" />

Has anyone seen this? How can I get around it?

[Code].....

View 1 Replies

Send Email With Flex Exception?

Oct 21, 2010

As I'm rolling out my Flex app to Beta I realized that I need to know about any exception that happens in Flex Side. But as it runs on users machines I don't get to see them.

Is there a way to make Flex send email every time an exception happens?

View 3 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







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