Http :: Flash - Make A POST Request From Within Flash To Processing Php Page?

Nov 6, 2009

I basically have a form inside of Flash that I need to submit to a server-side processing page, which will then return either json or xml telling if it succeeded or not ( json, xml I suppose ). My version of Flash is CS4 and I'm wondering if there are any libraries or frameworks I can use to accomplish this.

View 2 Replies


Similar Posts:


C# :: Catch A Http Post File From Flash To ASP.Net Page?

Oct 28, 2009

I'm working on a sample i found on this site:

[URL]

it captures the webcam & saves the image then posts it to a page.

but it seems that i couldn't catch the saved image

i'm capturing the response in a aspx page and save the image in a file. here's my asp.net code:

if (Request.Files.Count == 0)
{
Response.Write("ERROR: No files were uploaded");
return;

[Code].....

View 1 Replies

C# :: Catch An Http Post File From Flash To ASP.Net Page?

Mar 26, 2011

I'm working on a sample i found on this site:t captures the webcam & saves the image then posts it to a page.but it seems that i couldn't catch the saved image, im kinda rusty on'm capturing the response in a aspx page and save the image in a file. here's my asp.net code:

if (Request.Files.Count == 0)
{
Response.Write("ERROR: No files were uploaded");

[code].....

View 2 Replies

Flash :: How To Make A Http Request

Jul 22, 2011

Is it possible to make a simple Http Request using as2 and get the redirected result?xample[URL]

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

Flex :: Send HTTP POST Request With Binary Data In Body

Sep 17, 2009

I'm new to Flex and couldn't figure out yet how to send binary data to the server as the body of a POST request. The HTTPService component doesn't seem to support this. The FileReference doesn't seem to support setting the data via the Flex API.

View 4 Replies

Php :: Send POST Request With X-amf (Flash) Request Header?

Apr 13, 2011

I'm trying to reproduce a POST request that was captured from WireShark using PHP. This POST request was sent by a Flash (.swf) object, so it's a little bit complicated in configuring the header.It does not print out anything in the end, so there must be something wrong with PHP code that I could not see.Here is what WireShark captured:

POST /engine/ HTTP/1.1

Host: abcdef.com

User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8[code]....

The result is a blank page instead of response from server.

View 1 Replies

Flash Creating More Than One HTTP Request

May 11, 2010

We are facing one issue directly connected with our Flash API we've given to a 3rd party flash vendor. To make a long story short, our API basically wraps domain logic on client and creates a single POST request towards the server in JSON format. All will be ok except in combination MacOS + Safari we receive double requests on server (?).

Even more interesting, we are receiving different agent names - one is expected name/decriptor of the browser and system, other is "CFNetwork".
POST /RuntimeDelegate.ashx - 80 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10_4_11;+fr)+AppleWebKit/531.22.7+(KHTML,+like+Gecko)+Version/4.0.5+Safari/531.22.7 200 0 0
POST /RuntimeDelegate.ashx - 80 CFNetwork/129.24 200 0 0
POST /RuntimeDelegate.ashx - 80 Mozilla/5.0+
[Code] .....

View 1 Replies

ActionScript 3.0 :: How To Make Post Request With Tumblr API

Feb 2, 2010

So I'm trying to code an AIR widget for Tumblr. Before I actually start working on the widget, I wanted to play around with AS3 and the Tumblr API to do simple things, like reading and writing posts, editing posts etc. I got reading posts working, but when it comes to creating posts I run into an unknown brickwall. Here's the instructions from Tumblr's API doc on making a POST request:

The Write API is a very simple HTTP interface. To create a post, send a POST request to [URL] with the following parameters:
Email - Your account's email address.
password - Your account's password.
type - The post type.

These are the valid values for the type parameter, with the associated content parameters that each type supports:
Regular - Requires at least one:
Title
Body (HTML allowed)
[URL]

And here's my AS3 code:
import flash.net.*
gogo.buttonMode = true; // gogo is the instance name of a MC on the stage
gogo.addEventListener(MouseEvent.MOUSE_DOWN, go);
function go(e:MouseEvent):void{
var variables:URLVariables = new URLVariables();
[Code] .....
And for the life of me, no matter how simple I make this code, I cannot get it to work.

View 4 Replies

Flash - Load A XML Via POST-request In Flex?

Feb 17, 2012

I'm trying to load a XML via POST-request in Flex:

var request:URLRequest = new URLRequest('res/unhasher.xml');
request.method = URLRequestMethod.POST;
loader = new URLLoader();
loader.load(request);

But in Firebug I see that my file is loaded through GET.

Request header:

GET res/unhasher.xml HTTP/1.1
Host: bla-bla-bla.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1

[code]....

How to make POST requests from Flash/Flex?

View 2 Replies

Flex :: Make A POST Request With Parameters And An Attached File?

Apr 23, 2010

Make a POST request with parameters and an attached file

View 1 Replies

Ajax :: Detect If HTTP Request Is From Browser / Flex Asynchronous Request?

Jun 1, 2010

When Flex application make an asynchronus HTTP request, does it add a special header to the request, like some JavaScript framework does? Something that indicates whether this request is an AJAX call/not.I just want my server side code to return different response format, depending on whether the request is made from browser/flex.

View 1 Replies

Php :: Reading RAW Data From A Flash POST Request ( Images )?

Dec 8, 2009

I'm basically interacting with a third party API flash file to send HTTP POST requests to my server. know I'm on somewhat the right path because it requires a crossdomain.xml file, and before I added that part nothing in the POST variables was showing up, however since I added that file there are 4 variables that are set, these POST variables are sent by the application to give me basic information about the file.. but I actually need to read the RAW POST data to actually save the image being sent by the Flash.I'm aware there are 3 ways...$GLOBALS['HTTP_RAW_POST_DATA'] $HTTP_RAW_POST_DATA which is probably the same as the firstfile_get_contents('php://input')For whatever reason, neither of these "work". By "work" I mean they're not being set, when I var dump them I get nothing.

Could it be that there's a setting in php.ini that I need to set, or perhaps the Flash application is truly not sending the actual image? I think it's doing the right thing, because it's a semi popular API and it's used by a couple other sites so I'm pretty sure it's right on their end.

View 1 Replies

Django :: Flash - Iterate Over Chunks() With Request.POST?

Feb 17, 2010

I'm trying to optimize a site I'm building with Django/Flash and am having a problem using Django's iterate over chunks() feature. I'm sending an image from Flash to Django using request.POST data rather than through a form (using request.FILES). The problem I foresee is that if there is large user volume, I could potentially kill memory. But it seems that Django only allows iterating over chunks with request.FILES. Is there a way to:

1) wrap my request.POST data into a request.FILES (thus spoofing Django)

or

2) use chunks() with request.POST data

View 1 Replies

Flex :: Flash.media.Sound Not Sending HTTP Request Headers?

Feb 19, 2010

I am using Flex 3 (ActionScript 3.0). I use the HTTP progressive download to play sound files. I want to secure the sound files, by only serving them when the request comes from my flex app. I chose the simplest solution of adding a HTTP header to each request send from the app. But flash.media.Sound object ignores the headers set in flash.net.URLRequest. Here's an example,

URLRequest sndFile = new URLRequest("http://blah.com/media/load_sound.php");
sndFile.requestHeaders = new Array(new URLRequestHeader("req-orgin", "myflexapp"));
Sound snd = new Sound(sndFile);
snd.play();

The value of req-origin comes as null in load_sound.php. When i inspect the request using Firebug, the request headers to [URL] doesn't contain the header.

View 1 Replies

Possible For Flash Widget To Send POST Request To An External Domain?

Jan 13, 2011

is it possible for flash widge on site a.com to send POST request to b.com ?If so, couldn't this be quite dangerous ? A user would be performing POST to an unknown host

View 1 Replies

FLASH :: Save Image With PHP Which Was Uploaded With Http Post?

Jul 7, 2011

How can I save image with PHP which was uploaded with http post using FLASH? To upload to i'm PHP using this:

[Code]...

so the question is, how to form a file from that $_FILES variable?

View 2 Replies

Javascript :: Intercept The Response Of An Ajax Http Request Made By A Flash Object ?

Feb 24, 2012

I want want to intercept the response for an ajax request made inside a flash object via javascript.

View 3 Replies

Actionscript :: Post Request From A Flash File Stops Working After Published

Feb 14, 2011

I have a problem with the following code:[code]The problem is that the code is working when I test the scene (ctr+alt+enter in flash), but after I publish it it doesn't work... not sending any request nor redirect.What I want to do is to log in a file on the server what the users typed (related with Related with: Flash actionscript - save a text file on server).

View 1 Replies

Actionscript :: Load Captcha And Display In Flash From Http Post?

Sep 29, 2009

how to load image and display in flash from http post?

i would to http post some website and return captcha something and display

captcha from response some website from using actionscript flash?

View 1 Replies

ActionScript 3.0 :: Loading The Image Binary (after HTTP Request Headers Are Removed) As A Bitmap In Flash?

Sep 11, 2010

I'm building an image viewer that has violent content (video games), and so it requires users to enter their birthdays. Problem is that because of company policy, I can't expose any of the source images being viewed in the event that someone might use their resources/net tabs (or just sniff the request) and get the direct link to the image. (I know that they could screenshot it, but that's out of anyone's control and not something I'm worried about.)Is there anyway to inherently mask loaded resources (images)? I've been using sockets, which is great, but there's also the problem of actually loading the image binary (after HTTP request headers are removed) as a Bitmap in Flash.

View 4 Replies

ActionScript 2.0 :: Send Variables To Php Via POST, Which Returns A Different HTTP POST?

Jul 16, 2009

Im building a reservation form, using actionscript and php. I use sendAndLoad to send variables to php via POST, which returns a different HTTP POST response in case of sucess or not.

Is there anyway to "read" HTTP POST responses with actionscript?

View 4 Replies

Actionscript 3 :: URLLoader.load POST - Getting Http Status=0 And No Data. Works In Flash IDE

Jul 13, 2011

I am making rest calls with a urlload.load(urlRquest).

also
urlRequest.method = URLRequestMethod.POST;
urlRequest.contentType = "application/xml";

When I make the calls within the Flash IDE, I get HTTPStatusEvent.status = 400 (or whatever) when an error occurs. And the IOErrorEvent.data contains xml (or sometimes a string).

However, when I run the swf in a browser (Firefox Mac or PC), the HTTPStatusEvent.status = 0, and the IOErrorEvent.data is empty. (Interestingly in Safari Mac, I do get the 400 status, but still no data.)

View 1 Replies

Ajax :: In Terms Of HTTP Request Performance Pick AJAX Or Flash?

Jul 19, 2011

In terms of HTTP request performance should I pick AJAX or Flash? To be more specific, I'm more into Flash than AJAX and I'm currently working on a wide scale web project. I wanted to try AJAX out for once and now it's getting too messy for me. Before it gets more complicated I thought may be I can run Flash on the background for HTTP Requests and use it with javascript. I couldn't find any benchmark on the Internet, but I think AJAX is faster than Flash. So what's your personal experience? Is there too much difference between Flash and AJAX?

View 4 Replies

AS2 :: Post JSON Data From Flash With The JSON As The Body Of The Request?

Nov 5, 2010

I'm working on a Flash AS2 application that needs to post JSON data to a web service.In previous projects, I've used LoadVars.send() or LoadVars.sendAndLoad() successfully to manage this:

var send_lv:LoadVars = new LoadVars();
send_lv.data = JSON.stringify({some json object});
var response_lv:LoadVars = new LoadVars();
response_lv.onData = function(rawdata) {

[code]....

In somepage.php, I can grab that JSON data using $_POST['data'].However, on this project, the developer of the web service requires the JSON content to be the BODY of the request (i.e., not a name/value pair). Is this possible with LoadVars?

View 1 Replies

Professional :: Cannot See Flash On Http Page

Jun 11, 2010

I have uploaded http pages with flash but unable to see it on internet.I had the same problem before but when I reduced the size of flash file, it started show on the net.However, this time it does not work.The files I uploaded were http, flash, swf, scripts.The size of flash is 127kb and swf is 4kb.

View 7 Replies

ActionScript 2.0 :: Post Variable To Php Page From Flash

Jul 30, 2008

I am trying to set up a form in a flash movie that will post the users entry to a php page. I then need the php page to re-direct the user to a page to show a result.

I have the following AS in the flash form. It seems to post to the php page but from within the flash movie. Rather than taking them to the php page, as a non-flash form post would.

on (release) {
loadVariablesNum("search.php", 0, "POST");
}

Is there a way I can get the flash form to post to the php page in the same way a non-flash form would post.

Hope this makes sense! Basically, when the user clicks the submit button, I need the browser to load another php page that gets the user's input via post.

View 1 Replies

Actionscript 3 :: Post-processing Captured Video, Creating Slow Motion?

Apr 25, 2011

I have an interesting project wherein I need to allow users to capture video of themselves with a webcam at a kiosk, after which I email them a link to their video. The trick is the resulting video needs to be a 'slow motion' version of the captured video. So for example, if someone creates a 2 minute movie, the resulting movie will be 4 minutes.I'd like to build this in Flex / AS3 if possible. I don't have issues capturing the video and storing it / generating and emailing a link, but slowing down the video is the real mind bender. I'm unsure how to approach 'batch post-processing' a set of videos using Adobe tools

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

Actionscript 3 :: Post To Facebook Page From Flash Using Querystring?

Oct 7, 2010

Can someone point me to a simple example of posting to a user's facebook pages using a query string? ie I'm not using facebook connect.

View 1 Replies







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