Flex :: How To Implement HTTP Tunneling

Jul 26, 2009

I've written a Flash (Flex) client connecting to a back-end server to exchange data. I've also written my server from scratch, and it serves two purposes:

(1) Web (HTTP) Server- By default listens on port 80

(2) Socket/Application- Server - By default listens on port 443

Just FYI, both servers run in the same process space, for convenience reasons. They are not expected to handle massive loads, so I'm fine with that. As soon as the Flash client is served to the browser from the HTTP socket, the client attempts to open an XMLSocket to the Socket/Application server. I now want to implement HTTP tunneling, so that my client can connect to the Application server even if the user is behind a firewall. I do not want any external servers involved (proxies etc.) - simply use the servers I already have.

My questions:

(1) Is it better to use port 443 for that? (does it better fool firewalls?)

(2) As far as I can see, what I am required to do, is just ensure that my actual application data is simply encapsulated in an HTTP structure (preceded by a dummy HTTP header), both from the client and server sides. Is that so or am I missing anything here?

(3) Do I need to keep hiding/encapsulating my data every message I send through the socket, or can I just encapsulate the first message when opening the connection?

View 1 Replies


Similar Posts:


Flash :: Media Server 3 - Can RTMP And HTTP Tunneling Be Configured?

Jun 15, 2009

I have read some forums posted in here and also searched the web extensively but cannot find a clear answer or get HTTP tunneling to work with Flash Media Server 3.

Q1: Can Flash Media Server 3 be configured for RTMP and HTTP tunneling to work? The reason I need to know if this will work is due to more and more clients are reporting that videos are not playing for them and I have determined that these clients are sitting behind a firewall that has port 1935 blocked. So I would like to configure the FLV playback control to try to stream the file over RTMP and if that does not work, use HTTP.

Here is my asctionscript that I have tried to get this to work, but it does not. Some other notes are, the .FLV files live in this folder: D:AdobeFlash Media Server applicationsvodmedia The videos are recorded and then converted into .FLV files and loaded into this folder. The ultimate solution is I use a FLVPlayback control and pass the location and .FLV file name on the query string "Details.aspx?VIDEO=rtmp://216.203.12.15/vod/flv". I have pasted the object code * to show this example below the asctionscript.

[Code]...

View 9 Replies

Media Server :: Connection Between Fmsedge And Apache With Http Tunneling

Dec 4, 2009

I configured my FMS for listening on port 80 and redirect non-FMS requests to apache on port 8080 in the same server machine. It works well, but I've noticed several tcp connections from fmsedge to apache in Established status (it is simple to see through "netstat -nap | grep 8080" command) that stay forever (until FMS stop or restart). With a sniffer capture I seen that sometime the fmsedge requests to apache a tcp connection but it (fmsedge) doesn't use this connection. Then the apache server send a syn,ack tcp request and always fmsedge send a dup ack tcp response. So, the connection is active but not used, then apache doesn't close it.The kind of requests for apache are http get to js or php files. I don't understand why fmsedge create these connections.

View 2 Replies

Actionscript :: Implement Adobe HTTP Streaming Spec Without Using Their Streaming Server

Dec 14, 2010

As of Flash 10.1, they have added the ability to add bytes into the NetStream object via the appendBytes method URL...The main reason for this addition is that Adobe is finally supporting HTTP streaming of video. This is great, but it seems that you need to use the Adobe Media Streaming Server (URL...) to create the correct video chunks from your existing video to allow for smooth streaming.I have tried to do a hacked version of HTTP streaming in the past where I swap out the NetStream objects (URL...), but there is always a momentary pause between the chunks. With the new appendBytes, I tried to do a quick mock up with the two sections of video from the preceding site, but even then, the skip still remains.Does anyone know how the two consecutive .FLV files needs to be formated in order for the appendBytes method on the NetStream object to create a nice smooth video without a noticeable skip between the segments?

View 6 Replies

Flex :: How Does One Implement The Google Maps 3D API (or Similar) For Flex With A Local Map Cache

Aug 17, 2010

I am writing a Flex application for use on a private intranet with no external Internet access. I want to use Google's 3D Maps Flex API, but it must be connected to the internet to download map tiles on demand.

Is there a way to locally cache the 3D map tiles and data so that I can run this app without an internet connection? And if not, is there a 3D GIS that supports Flex integration and allows for a local map cache?

View 1 Replies

Flex :: Use TweenLite To Implement Effect Of Flex's PopUpManager?

Apr 21, 2011

How can I use TweenLite to implement effect of Flex's PopUpManager?

View 1 Replies

Flex - Pass Authentication Headers Using Flex HTTP Service?

Sep 6, 2010

I am trying to access a .Net service which requires an authentication header. If WebService is used it works fine. But when it is accessed using HTTPService it throws error. The project is already done by somebody else using HTTPService. Now changing to webService requires some time since there needs to be modification in a lot of files.

Below is the SOAP envelop required by the service.

[Code]...

View 1 Replies

Flex - Implement Screen In Flex When App Is Busy?

Mar 16, 2010

I have a function that restores all of the default settings of my application. This process can take a bit of time, so I would like to implement a "Please wait..." modal popup to let the user know that everything is alright and the program hasn't frozen. Once the function completes its task, I'd like for it to remove the message, and resume normal behavior.

View 4 Replies

How To Implement This Layout In Flex 4

Apr 23, 2010

I'm learning layouts in Flex. I try to make the following layout.The red arrow means when enlarge the window, the red arrow widget will become large too. Can anyone implement this layout in Flex?

View 2 Replies

ActionScript 3.0 :: Implement Localization In FLEX?

Aug 16, 2011

How to achieve Flex Localization !! In my current project other than English, I need to change the language to French/Spanish also.I am using FB 4.0 and it integrated with Java/Jsp/xml. There is lot of integration in almost all modules. Here the requirement was, i want to display a comboBox with French/Spanish options. Now based on the selection whole application language has to change ie either French/Spanish.

View 1 Replies

Flex :: Possible To Implement Facebook In Adobe?

Feb 13, 2010

I am considering creating a website with the complexity of Facebook that should be able to scale into the millions of users. My question is: Is there any reason not to use Adobe Flex for such large project apart from the obvious point of requiring everyone to have Flash installed and not having to rely on Adobe? In my view Adobe Flex would reduce the server load for Facebook, because more of the work could me done on the client side.

View 7 Replies

Flex :: Implement Drag-out-to-delete?

Mar 4, 2010

I have a List component from which I'd like to be able to remove items using drag & drop, but without having a specific target. If you use the mac, the behaviour I'm looking for is something like what the Dock uses; when you drag something out of the bounds of the control it should get an icon that indicates that it'll be deleted (OSX uses a cloud or something?) and then if you release it it will be removed from the list.

View 2 Replies

Flex :: Implement The Authentication In Portlets

Jun 4, 2010

I want to have flex portlets side by side with JSP portlets. How can we implement the authentication mechanism? [ Authentication will be handled by the portal and how can we share the same session with flex portlets ]

View 1 Replies

Php :: Implement Virtual Filesystem With Flex?

Apr 9, 2011

I am creating an EDM (Electronic document Management) system which will use Flex for front-end, PHP at server side and Mysql as database. Since its an EDM a single file will have many versions old copies will be stored hence one to one files mapping is not a choice. Wondering whats the best way to do so.

View 1 Replies

Actionscript 3 :: Implement Encryption In Flex 3?

Apr 12, 2011

we have one application where we are pulling some confidential information from one of the product design tools. So we have used HTTPS as the channel and also we are encrypting the Request Parameters and Some data before we sent it to Web Services.Everything seems OK.But when we gave the application for Security auditing they found we have hard coded the encryption key in source code. They have used Sothink SWF Decompiler to look into my SWF file. They caught the key and raised concern over it.

We have developed this application using Flex 3(SDK 3.4). Is there any best way to use Secret key without being hard coded in source code. If anybody come across this kind of problem, please let me know. use the secret keys in SourceCode without being Hard coded.

Here is my sample code:

var currentResult:String = "";
var strDataToEncrypt:String = "";
var kdata:ByteArray;

[code]....

View 2 Replies

Flex :: Implement Paging In Datagrid?

May 2, 2011

i want to implement paging in flex datagrid, i am using this code. In Asp.net we can implement paging by setting property of datagrid, is there any such property for flex datagrid?

View 2 Replies

Flex :: Implement IP Validator Over TextInput

Nov 28, 2011

I have followed this tutorial to implement an IP Validator over a TextInput. But, I have not been able to resolve following error for some hours.
Error: Could not resolve <flexScript:IPAddressValidator> to a component implementation. MasterTabNavigator.mxml /XflowGUI/src/view

Code:
MasterTabNavigator.mxml:
<mx:TabNavigator xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:flexScript="flexScript.*" >
[Code] .....

View 2 Replies

Getting An API To Implement Yahoo Chat In Flex?

May 20, 2009

Is there an API to implement Yahoo chat in Flex? Or at least some calls?

View 3 Replies

ActionScript 3.0 :: How To Implement Localization In FLEX

Aug 16, 2011

How to achieve Flex Localization !! In my current project other than English, I need to change the language to French/Spanish also.

I am using FB 4.0 and it integrated with Java/Jsp/xml. There is lot of integration in almost all modules. Here the requirement was, i want to display a comboBox with French/Spanish options. Now based on the selection whole application language has to change ie either French/Spanish.

View 1 Replies

Actionscript 3 :: Implement Macros In Flex/FlashDevelop?

Jul 17, 2009

Currently, i have been compiling my applications with FD/CS3 and want to make the switch to the flex compiler. One of the main things i want to experiment with the flex compiler is using Macros in AS3. For instance, say i have some extremely expensive operation that i wish to carry out:

private function Main():void
{
extremelyExpensiveOperation(params);
}

but i want to avoid the cost of a function lookup. So instead of using a function lookup I do something like

private function Main():void
{
<macro expandExtremelyExpensiveOperationHere(params)/>
}

obviously the syntax doesn't have to look exactly like that, but the macro gets expanded before compilation thus avoiding function lookup.

View 1 Replies

Flex :: Scribd Implement Their 'fullscreen' Mode?

Aug 14, 2009

The scribd fullscreen mode is pretty neat (example: http:url...). The advantage (for RIAs specifically) is that it doesn't (almost) completely disable the keyboard the way the 'default' fullscreen mode in Flash Player does. Seems to also work when embedded.

View 3 Replies

ActionScript :: Flex - Get Classes That Implement An Interface

Sep 9, 2009

In ActionScript (AS3) how do I find all the classes that implement a particular interface?

View 3 Replies

Flex :: Implement A Drilldown Effect In A DataGrid?

Dec 30, 2009

I want the Flex DataGrid to implement a drilldown effect. The data to the DataGrid is obtained from an XML file.

View 1 Replies

Flex :: Flash - How To Implement Ajax Functionality

Apr 15, 2010

I have a requirement like when I type 2 characters in email field if that email id exists in DB then I need to show remaining emails starting with those characters needs to display in dropdown list. Like Tags part in stackoverflow site, Is it possible in flex this functionality?

View 2 Replies

Flex :: Implement Server-side Filtering ?

Jun 20, 2010

I've got Flex 4, Zend and php. I've set up paging in my datagrid but how do I do server-side filtering? I have about millions of records so obviously can't do client side filtering.

View 1 Replies

Flex :: Implement CruiseControl In Project Building?

Aug 26, 2010

I need to deploy my project automatically using cruise Control .

View 1 Replies

Flex :: What Is The Keyword That Allow To Implement An Abstract Class

Nov 25, 2010

what is the keyword that allow me to implement an abstract class? It was asked in my interview..Can you say it from both java and ActionScript(flex)

View 2 Replies

Actionscript 3 :: Implement SHA1 Algorithm In Flex?

Dec 9, 2010

I am building an application in Flex, wherein I need to encrypt user id and password using the SHA1 alogorithm. I have not come across any standard Flex library which allows me to do this. Does anyone know how to achieve this in Flex?

View 1 Replies

Flex :: Implement A Transparent Eraser Tool?

Dec 29, 2010

How can I implement an eraser in Flex so that when it erases on an mx:Image, it makes the area transparent?

View 4 Replies

Actionscript :: Implement A ItemRenderer On MenuBar In Flex 4?

Mar 11, 2011

I'm trying to make a menubar with an itemrenderer of linkbuttons. How could I go by doing this? Here is what my code looks like so far, but I can't seem to get it working.

<mx:MenuBar id="menuBar" labelField="@label" dataProvider="{menus}" itemRenderer="mx.controls.LinkButton">
</mx:MenuBar>

View 1 Replies







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