Php :: Proxy To Get XML?

Feb 17, 2011

So I need to retrieve XML from a public API, but my app is in Flash and the public service won't implement a crossdomain.xml file. I found this PHP script online (below) for a proxy to request the URL. It works fine for URLs like:

[URL]

but the script seems to either strip or ignore any arguments on the URL, like:

[URL]

I'm PHP ignorant. Is there an easy way to have this script process those URL arguments? Here is the script:

<?php
$post_data = $HTTP_RAW_POST_DATA;
$header[] = "Content-type: text/xml";
$header[] = "Content-length: ".strlen($post_data);

[code]....

View 1 Replies


Similar Posts:


Flash :: Uploading Images With Uploadify Run Into IO Error With Local Proxy (proxy.pac)?

Feb 21, 2010

I'm trying to upload images with Uploadify but I run into IO error. I have gotdemo and it works on my computer, so I decided to implement functionality of my application to this example step by step to catch the error and discovered that the reason of IO error is my local proxy.pac (I use FF):

function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.app.local*")) {
return "PROXY 127.0.0.1:3000";

[code]....

View 1 Replies

Media Server :: Using A Proxy To 3.5

Aug 18, 2010

Is it possible to use Apache to proxy/tunnel RTMP(S) traffic through to Flash Media Server?Basically, I want to tunnel RTMP traffic using HTTP through Apache.What I want to be able to do is open up an appropriate port (either 80 or 443) on the Apache server and have that proxy traffic through to Flash Media Server. The reason I ask is that I have set-up this scenario but I keep getting a "NetConnection.Connect.Failed" error message; I captured the network traffic flowing between my machine and the server and it is connecting to the server, just nothing happens after that.Do I have to connect directly to Flash Media Server?

View 1 Replies

Flash :: Get The Client-IP Even If A Proxy / VPN Is Used?

Aug 23, 2011

How do I get the clientIP from users in my regisrtationforms? It's easy to get the IP with the user isn't using a Proxy, Proxycacade or VPN. But if he uses one of those its difficult. X-Fowarded-For isn't reliable and fails within cascads.

But there are possibilities, because JavaApplets and Flash aren't using the Proxy-Services. How can I archieve to get the clientIP with those technics? I prever to use a small Flash-Code to get the IP from the client, but how to implement?Another way should be a counterpixel which is using IPv6. Most of the proxyservices only support IPv4, can I tell an image only to use IPv6?

View 1 Replies

Use A SWF As A Web Request Proxy Between Javascript And Server?

May 23, 2009

I know I can call my server directly from javascript. However, I want to do this through a non-GUI SWF file. I'm fairly new to Flash but have gotten all the CS3 tools from work. Does anyone know of any examples on:

1. how to make a web request from within flash provided the URL, post content, and timeout

2. how to call a Flash API from javascript asynchronously

3. how to detect whether the browser being used can support my SWF (I don't want it to prompt to install Flash if they don't have it yet)

I'm actually hoping someone has already done this and has a sample already built.

View 7 Replies

Actionscript 3 :: Cast A Proxy To An Interface?

Jan 30, 2011

I need ActionScript Proxy to be castable to a particular interface.

Here is an example without interface:

public dynamic class Tracer extends Proxy {
flash_proxy override function callProperty(method:*, ... args):* {
trace(method + " " + args)
}
}

[Code]...

View 2 Replies

Flex :: Use Proxy In It's HTML Control?

Mar 21, 2011

I want to use a proxy on the HTML Control found in Adobe AIR.I have tried looking at the AS3 docs on Adobe but honestly, it didn't explain the usage clearly to me and looking at Adobe's example, I can't seem to make out anything off of it.

View 1 Replies

Php :: Facebook Proxy Loader Security?

May 19, 2011

I'm using a PHP proxy script to load images from Facebook into Flash without any sandbox violations. It is taken from the guide here: [URL].. The relevant PHP code is:

[Code]...

The guide mentions that additional security measures are recommended for a real world application. What additional measures would be applicable to this? Maybe some kind of key passed from Flash to PHP?

I realise that there's nothing I can do to completely protect the Flash from being decompiled, but can I prevent the script from being used maliciously?

View 1 Replies

AS3 :: Overriding Proxy GetProperty Method

Jun 6, 2011

I've run into a peculiar problem while trying to make use of the Proxy class and override the getProperty() method. I've attached my example class code below:

package
{
import flash.utils.Proxy;
import flash.utils.flash_proxy;

[Code]....

View 1 Replies

Flash :: Proxy Error #2124?

Jul 13, 2011

I got a standard php proxy getting images cross domains.

domain/proxy.php?url=http://images.fandango.com/r85.7.3/ImageRenderer/69/103/images/no_image_69x103.jpg/135631/images/masterrepository/fandango/135631/hp7_2-3d imax poster_lo.jpg

[code].....

View 1 Replies

Flash :: Get The Proxy Server To Cooperate?

Aug 1, 2011

I'm trying to use JMeter to test our web application and I'd like to use an automated recording of tests but our UI is in flash/flex. Is there any way to get the proxy server to cooperate with the flash/flex? I do have control of both the client and server sides, though rewriting our application to redirect the flash/flex calls to another address isn't really an option. If there were an automated way...

I'm currently testing Windows client and server, but I also need to support testing on Linux client and server. If tests need to be created on one or the other and can be ported to both I could live with that.

View 2 Replies

Actionscript 3 :: How To Define Proxy Without Blaze DS

Jan 5, 2012

I have an AIR app that I need to define a proxy for because the services sit behind a firewall. We are not using BlazeDS so I can't define the proxy settings in the proxy-config.xml file. So, how do I do it? I'm guessing that I'm not the first person who has had to work behind a firewall when accessing data so I'm not sure why I can't find any documentation on the web anywhere about this.AIR says it is supposed to automatically know and use the proxy configuration from your system, i.e. default browser. In there, I don't set a manual proxy, I use the 'automatic configuration' and point it to a .dat file. Could this be where the problem is? Does AIR not know how to understand this?There's no way to set a proxy on an HTTPService component unless you are using Blaze DS or LCDS? Is this true? I'd hate to have to add that to my application just so I can get this accomplished.

View 1 Replies

ActionScript 3.0 :: Flash Upload From Behind A Proxy?

Jan 20, 2009

I am working behind a proxy and some of the flash uploaders out there require me to authenticate myself on the local proxy before allowing me to upload files. I have such an uploader which currently is outside my network. However after it tryes to execute file.upload(request); it dies silently without a trace of what is going on. I presume that it fails because it hasn't requested the proxy auth. How can I show the proxy auth login pop-up. Here's a sample of my code

ActionScript Code:
var request:URLRequest = new URLRequest(this.uploadScript);
request.method = URLRequestMethod.POST;
request.data = new URLVariables();

[code]....

View 0 Replies

ActionScript 3.0 :: Loading Crossdomain.xml By Proxy?

Feb 6, 2009

I have to load my "crossdomain.xml" using a proxy.how can i do that?

View 0 Replies

Flex :: Drag Actual Element Rather Than A Proxy?

Dec 17, 2009

I'm trying to implement a dragging system which can only be described as similar to dragging the map on Google Maps. I can set up dragging easily in Flex, but unfortunately the standard model of dragging i.e. dragging an element proxy and dropping it in another element is not what I'm after.

Is there anything built into flex where the actual element rather than a proxy can be repositioned in a different place within the same parent? Or will I have to hand code something using mouse events as you would if implementing a solution in JavaScript?

View 2 Replies

Flex :: BlazeDS Servlet Not Responding Through Proxy?

Jan 25, 2010

I have a problem using Flex with BlazeDS on a Tomcat 5.5 through a Proxy (Apache). I already searched for it but didn't find answers which solved my problem. I hope you guys can help me out. Our scenario is the following: Flex-App using BlazeDS to communicate with our Dataservice on a Tomcat 5.5.The Webapp is balze enabled and the services config contains channel definitions like the following:

<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://xxx.xxx.xxx.xxx:8180/myDataService/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint">
</channel-definition>

[Code]...

View 2 Replies

Php :: Push Information From A Proxy To A Flex Application?

Jul 29, 2010

So I have a PHP proxy that gets information from a website. Let's say the proxy gets the information from (www.example.com). It checks if the number of lines returned is the same as before, if not then there are more lines, it counts the difference then it need to push this information to the Flex client saying that it has new information, (x) more lines have been written.I am not really sure how to do the push mechanism on the php proxy because I am not sure how to actually push from the proxy to the client, never done it before.

View 2 Replies

Flex :: Using Proxy To Over Come Cross Domain Restriction?

Nov 7, 2010

After reading James Ward's post I'm considering using a proxy rather than a crossdomain.xml file. I have a java app, which includes a flex applet, on one tomcat instance and a java web service on another tomcat instance. Does it make sense to have a single (Apache httpd) proxy handle requests for both the app and the web service, thus eliminating the cross domain restriction?how to deal with the cross domain issue are welcome.

View 2 Replies

Flash :: Setting Proxy Settings For Player?

Jan 9, 2011

I asked Google. But there is no working answer for it. I checked "right click -> global setings" and found no proxy setting in [URL].. Can anyone know how to configure proxy settings for flash player?

View 1 Replies

Flex :: AIR Application Connecting To RemoteObject Through Proxy?

Apr 29, 2011

I am having some issues trying to make an AIR application connect to a RemoteObject when the application is run in a domain that has proxy servers for outbound connection.The error provided is as below:

[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://myTestService.org:8080/default/message/amf'"]

View 1 Replies

Actionscript 3 :: Proxy Server Functionalities In Flex?

Jun 11, 2011

explain me briefly what is proxy server and what does it do

View 1 Replies

Modify Browser Proxy Settings Adobe Air?

Aug 31, 2011

Is it possible to modify browser proxy settings with flex/actionscript/air?

View 1 Replies

Flex :: Using Proxy Webservice With Adobe AIR / BlazeDS

Sep 28, 2011

I am trying to call a webservice using proxy. My settings for proxy-config on blazeds side are as below:[code]Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (null)faultString: [MessagingError message='Destination 'ws-catalog' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']

View 2 Replies

Flash :: Applications Forced To Use A Browser's Set Proxy?

Feb 6, 2012

Are flash applications forced to use a browser's set proxy.

Such as a proxy that has been set on foxy proxy.Or will it be treated as a separate application that can see the user's real IP address.

View 1 Replies

Java :: Dphibernate - Proxy Initialized False

Feb 13, 2012

I need advice. My server application send objects with not inialized proxies. Primitive types ok, but onetomany and etc. not initialized proxies. As result my client application gets nothing when retreive received object properties.

here is sample with src and conf files without libs project on githubhere is server log, where you can see that objects were retreive fromdatabase and send with proxyinitialized = false

[Code]....

View 1 Replies

ActionScript 3.0 :: Test A Flash Movie Using A Php Proxy?

Sep 18, 2009

I'm trying to get a JSON response from an API into Flash using a PHP proxy (and decoding in as3 using as3corelib), and I can't figure out how to test this.

If I run an html/js file that is using the proxy to get the same data, it works, so I know that there aren't errors in my php file.

If I use my as3 to directly call and parse data from a different API (not using a proxy), I can get the data ok.

But if I run my swf trying to connect to the proxy file and get results, nothing happens. I'm not really sure how to trace what's going wrong. I assume I have to test the swf on the server? Or does just the php file need to be on the server and I can test the swf locally (this would be WAY easier)?

Here's my code:

Code:
package com {
import flash.events.*;
import flash.events.EventDispatcher;
import flash.display.Sprite;

[Code]....

View 2 Replies

ActionScript 3.0 :: Use Flash_proxy Namespace Without Extending Proxy?

Mar 1, 2009

I keep running into this problem that I need a solution to. How can I create a display object, that I can write proxy methods for, so I can catch all method calls on the object.asically, the problem is that the only way to implement a proxy is by extending the Proxy class. But what if my class extends Sprite, but I still want to implement the methods from the flash_proxy namespace?

View 2 Replies

Media Server :: SWF Verification Behind A Reverse Proxy Cache?

Mar 29, 2012

If I place an set of FMS servers behind some reverse proxy caches, will I get problem with SWF verification if the cache layer caches the .f4m meta data file with the SWF verification data? Is there any documented best practice on the requirements to build large scale deployment with security enabled?

View 1 Replies

Flex :: Determine Drag Proxy When Using ItemRenderer On DataGrid?

Jul 20, 2010

I'm using default drag/drop on Flex DataGrid, however, the dataGrid itself has an itemrenderer.Looks like:

public class FlashFileDataGridRenderer extends Label{
public function FlashFileDataGridRenderer(){
super();

[code].....

View 2 Replies

Actionscript :: Proxy Script In PHP To Circumvent Missing Crossdomain.xml

Oct 8, 2010

1st the background - so that you see, that I'm not trying anything malicious: I have a flash app in the russian social network vkontakte.ru which displays user avatars. Until now my .swf file has been hosted at their domain, so that fetching and scaling avatars worked well.Now I'd like to switch my app to an iframe-type, so that the .swf will be hosted at my domain and thus I'm not able to scale the avatars in my .swf anymore: neither my domain, nor "*" are listed in url... and thus the .swf can download and display the avatars, but can't scale them anymore (accessing myLoader.content throws SecurityError).I've decided to write a proxy script in PHP which would fetch the image specified in scripts ?img= parameter and then just pass it to the stdout (after some checks and without storing anything):[code]

But when I fetch it through my proxy script, I don't see that header.Maybe I should better use a different function instead of fopen()? I'm not very proficient in PHP. Also I'm worried if fopen() can be tricked into serving local files from my web server.And as a bonus question: I'm worried that my .swf will be not the only app calling my proxy.php, but I can't figure out a good way to secure it (maybe there is no such way) - I can't store a secret in my .swf and in the .php - because the .swf can be disassembled.

View 1 Replies







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