Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-17-2008, 11:55 PM   #1
Shizam
Registered User
 
Join Date: Mar 2008
Posts: 1
Question Weird Loader behavior for FF2, headers, referrer...

Hi All,
So the first strange item is that in Firefox when you make a loader request:

Code:
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest('someurl');
loader.load(URLRequest);
the referrer isn't sent, but only for Firefox this works fine in Safari and IE. We figured thats just some stupid thing in FireFox and we moved on, we'll just make our own X-OurReferrer header. Bzzzzt.

Code:
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest('someurl');
request.requestHeaders.push(new URLRequestHeader('X-OurReferrer', 'whatever');

loader.load(URLRequest);
The new header isn't sent in FF, wtf? After some poking around and copying the example in the helpdocs line for line I came to these discoveries:

1) You _have_ to do a POST for the header to be passed, GET won't pass it.
2) You _have_ to pass some arguments along, even if its just foo=bar, request.data = new URLVariables("foo=bar");

If you don't do both of these in FF2 your custom header isn't sent. Plus, get this, if you do do a POST and pass arguments along then your Referer and Cookies headers are finally now passed in FF2.

So the questions are:

-Why does FF2 not pass the referrer header always
-Why do you have to do a POST _and_ send arguments if you want to pass custom headers
-Why do you have to do a POST _and_ send arguments if you want the referrer and cookies headers to go in FF2?

Thanks for any help, these seem like silly requirements.

Sam
Shizam is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem loading in SWF into loader object .NET ActionScript 3.0 1 02-08-2008 02:29 PM
BREAK an IF Loop? 05studios ActionScript 3.0 8 12-12-2007 07:40 PM
Multiple Continous File Loader jsimpson ActionScript 3.0 1 05-31-2007 05:50 PM
Loader and events bobster ActionScript 3.0 1 10-08-2006 06:24 AM
I have a Loader Component problem Shaun-Optimus Components 1 06-10-2006 12:48 PM


All times are GMT. The time now is 05:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.