| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2008
Posts: 1
|
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);
Code:
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest('someurl');
request.requestHeaders.push(new URLRequestHeader('X-OurReferrer', 'whatever');
loader.load(URLRequest);
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |