Re: [Flashcoders] Advice on calling subscriber script on another server

2010-11-26 Thread Juan Pablo Califano
No problem, Paul.

I'm glad you sorted it out!


Cheers
Juan Pablo Califano

2010/11/26 Paul Steven paul_ste...@btinternet.com

 Awesome! Thank you Juan - that worked perfectly! I did get caught out for a
 while by not adding

 require_once HttpClient.class.php

 But once I realised I had omitted this, it worked a treat.

 Many thanks!

 Paul



 On 26 Nov 2010, at 02:25, Juan Pablo Califano 
 califa010.flashcod...@gmail.com wrote:

  I think the easiest option would be creating some sort of proxy in php,
 if
  that's what's available to you on your server.
 
  The only potential problem is (your) server configuration. Sometimes,
  external connections are not allowed, so calling functions like
  file_get_contents() with an external url won't work.
 
  Also, it seems you need to POST your data, so it's a bit more complex but
  not too much.
 
  A week ago or so I had a similar scenario. Though there was a crossdomain
  allowing connections from the production server, there was no crossdomain
  policy for the staging and dev environments. I also had to receive and
 send
  cookies, so I googled a bit and found this class, which was easy to use
 and
  worked nicely for me
 
  http://scripts.incutio.com/httpclient/
 
  Some sample code for a POST request (taken from the project I worked on,
  just slightly modified) :
 
 $client = new HttpClient(theotherserver.com);
 //  this will print out useful info, enable it when debugging!
 // $client-setDebug(true);
 
 $client-post(/theservice.ashx, array(
  'first_var'= 'foo',
  'second_var'= 'bar',
 'etc'   = 'blah',
  ));
 
 //  check status code here...
  if($client-getStatus() == 200) {
 //  a string with the server's response
  $response_raw_data = $client-getContent();
  }
 
  Maybe you can give this a try, it's very simple to install and use (just
  download and include the php file; you can find more code examples in the
  site).
 
  Again, in some configurations this code could not work; if any external
  connection in your server is rejected, then there's not much you can do.
 But
  even in the worst case, maybe you could find a third server that you have
  control over and that allows you to open external connections, so you
 could
  add a crossdomain there and run the php http client over there. Then,
  instead of talking directly to the ad server or a local php script, you'd
  call a third server that you control, which will proxy the communication
  between flash and the ad server.
 
  Hope it makes sense!
 
  Cheers
  Juan Pablo Califano
 
  2010/11/25 Paul Steven paul_ste...@btinternet.com
 
  Thanks for all your help Henrik
 
  I will ask the site in question in the morning. I was under the
 impression
  it would be like every person who used Microsoft Office asking Microsoft
 to
  add a cross domain file for their particular scenario. To be honest I
 just
  panicked when the client reported tonight that this functionality didn't
  work and after trying to create a php file that would call the ashx file
  for
  me without success and doing a good bit of searching on google, I
 thought
  perhaps if there was a simple solution to this that someone on Flash
 Coders
  may know and be able to help me in my hour of need.
 
  Anyway I will email the site now though as it is UK based assume that I
  will
  not get any reply until tomorrow (which is too late!)
 
  Thanks for the advice
 
 
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com
  [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
  Andersson
  Sent: 25 November 2010 20:34
  To: Flash Coders List
  Subject: Re: [Flashcoders] Advice on calling subscriber script on
 another
  server
 
  Paul Steven skriver:
  Thought I could get some help here not labelled lazy!
 
 
  You do realize that it takes just as long to simply ask the site in
  question right?
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Henrik Andersson

Paul Steven skriver:

I realise this is probably something that requires a crossdomain.xml file on
the other server but this is not possible.


Why not? Did you even ask the people responsible for the server? Either 
they are going to fix it quickly or they are going to turn you down.


And if they turn you down, then you shouldn't be doing this to begin with.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Paul Steven
The other server is something similar to mailchimp or campaignmonitor where 
they have hundreds of thousands of people using their services. Therefore doubt 
they would add crossdomain.xml for me. They basically offer api to update my 
subscriber list

Sent from my iPhone

On 25 Nov 2010, at 19:11, Henrik Andersson he...@henke37.cjb.net wrote:

 Paul Steven skriver:
 I realise this is probably something that requires a crossdomain.xml file on
 the other server but this is not possible.
 
 Why not? Did you even ask the people responsible for the server? Either they 
 are going to fix it quickly or they are going to turn you down.
 
 And if they turn you down, then you shouldn't be doing this to begin with.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Henrik Andersson

Paul Steven skriver:

Therefore [I] doubt...


Quit being so lazy and contact them already.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Paul Steven
Unfortunately the game goes live in 3 hours time so not a case of being lazy as 
I have just wrote a backup plan in php to save data to a database on client 
server. My client reported the functionality worked fine a week ago and only 
reported at the last hour today that it wasn't working. Thought I could get 
some help here not labelled lazy!

Sent from my iPhone

On 25 Nov 2010, at 19:42, Henrik Andersson he...@henke37.cjb.net wrote:

 Paul Steven skriver:
 Therefore [I] doubt...
 
 Quit being so lazy and contact them already.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Henrik Andersson

Paul Steven skriver:

Thought I could get some help here not labelled lazy!



You do realize that it takes just as long to simply ask the site in 
question right?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Paul Steven
Thanks for all your help Henrik

I will ask the site in question in the morning. I was under the impression
it would be like every person who used Microsoft Office asking Microsoft to
add a cross domain file for their particular scenario. To be honest I just
panicked when the client reported tonight that this functionality didn't
work and after trying to create a php file that would call the ashx file for
me without success and doing a good bit of searching on google, I thought
perhaps if there was a simple solution to this that someone on Flash Coders
may know and be able to help me in my hour of need. 

Anyway I will email the site now though as it is UK based assume that I will
not get any reply until tomorrow (which is too late!)

Thanks for the advice



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
Andersson
Sent: 25 November 2010 20:34
To: Flash Coders List
Subject: Re: [Flashcoders] Advice on calling subscriber script on another
server

Paul Steven skriver:
 Thought I could get some help here not labelled lazy!


You do realize that it takes just as long to simply ask the site in 
question right?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Chris Foster
Hi Paul,

Are you relying on the other server to return information for you to use
in your game? Or are you simply required to send new subscriber
information to the distant server?

C:



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul
Steven
Sent: Friday, 26 November 2010 5:37 AM
To: 'Flash Coders List'
Subject: [Flashcoders] Advice on calling subscriber script on another
server

My flash game needs to call a script on another server to update a
subscriber list with a name and and email address. I thought all was
working
fine while testing from the IDE but have just realised it doesn't work
when
testing in a browser.

I realise this is probably something that requires a crossdomain.xml
file on
the other server but this is not possible. I therefore seek advice on if
there is any other solution to call a script and pass parameters to a
script
on another server. The script I am calling is a ashx file which I
believe is
asp. 

Any help really appreciated

Thanks

Paul

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Paul Steven
Hi Chris

I simply need to send the new subscriber information to the distant server

I was given an html form by my client that had to be converted to Flash for
the game. The form has 2 hidden variables and then 3 other variables, name,
email and telephone. The flash form submitted the data to the script on the
remote server (signup.ashx) fine when running from the IDE as the client was
able to confirm the data was added but due to the security restrictions of
flash it doesn't work from in the browser as my game is on one domain and
the script on another. 

Any advice appreciated

Thanks

Paul




-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Chris Foster
Sent: 25 November 2010 20:51
To: Flash Coders List
Subject: RE: [Flashcoders] Advice on calling subscriber script on another
server

Hi Paul,

Are you relying on the other server to return information for you to use
in your game? Or are you simply required to send new subscriber
information to the distant server?

C:



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul
Steven
Sent: Friday, 26 November 2010 5:37 AM
To: 'Flash Coders List'
Subject: [Flashcoders] Advice on calling subscriber script on another
server

My flash game needs to call a script on another server to update a
subscriber list with a name and and email address. I thought all was
working
fine while testing from the IDE but have just realised it doesn't work
when
testing in a browser.

I realise this is probably something that requires a crossdomain.xml
file on
the other server but this is not possible. I therefore seek advice on if
there is any other solution to call a script and pass parameters to a
script
on another server. The script I am calling is a ashx file which I
believe is
asp. 

Any help really appreciated

Thanks

Paul

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and
privileged information for the sole use of the intended recipient.  Any
review, use, distribution, or disclosure by others is strictly prohibited.
If you are not the intended recipient (or authorized to receive information
for the intended recipient), please contact the sender by reply e-mail and
delete all copies of this message.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Chris Foster
Thanks Paul,

I assume by 'client' you mean your Flash game, right?

If that's so then I think you have a crossdomain issue, but a workaround
'may' be to still use your containing HTML page to send and verify the
data, and only use your SWF to trigger the submission of the form using
the ExternalInterface class.

It might be more than you can achieve given your tight deadline, but
it's another option...

Does that make sense?

C:

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul
Steven
Sent: Friday, 26 November 2010 7:57 AM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] Advice on calling subscriber script onanother
server

Hi Chris

I simply need to send the new subscriber information to the distant
server

I was given an html form by my client that had to be converted to Flash
for
the game. The form has 2 hidden variables and then 3 other variables,
name,
email and telephone. The flash form submitted the data to the script on
the
remote server (signup.ashx) fine when running from the IDE as the client
was
able to confirm the data was added but due to the security restrictions
of
flash it doesn't work from in the browser as my game is on one domain
and
the script on another. 

Any advice appreciated

Thanks

Paul




-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Chris
Foster
Sent: 25 November 2010 20:51
To: Flash Coders List
Subject: RE: [Flashcoders] Advice on calling subscriber script on
another
server

Hi Paul,

Are you relying on the other server to return information for you to use
in your game? Or are you simply required to send new subscriber
information to the distant server?

C:



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul
Steven
Sent: Friday, 26 November 2010 5:37 AM
To: 'Flash Coders List'
Subject: [Flashcoders] Advice on calling subscriber script on another
server

My flash game needs to call a script on another server to update a
subscriber list with a name and and email address. I thought all was
working
fine while testing from the IDE but have just realised it doesn't work
when
testing in a browser.

I realise this is probably something that requires a crossdomain.xml
file on
the other server but this is not possible. I therefore seek advice on if
there is any other solution to call a script and pass parameters to a
script
on another server. The script I am calling is a ashx file which I
believe is
asp. 

Any help really appreciated

Thanks

Paul

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and
privileged information for the sole use of the intended recipient.  Any
review, use, distribution, or disclosure by others is strictly
prohibited.
If you are not the intended recipient (or authorized to receive
information
for the intended recipient), please contact the sender by reply e-mail
and
delete all copies of this message.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Paul Steven
Thanks Chris 
I have never used externalinterface before but will google it now and give it  
a go. 
Thank you for your help - it is really appreciated. 
Thanks
Paul



On 25 Nov 2010, at 21:09, Chris Foster cfos...@catalystinteractive.com.au 
wrote:

 Thanks Paul,
 
 I assume by 'client' you mean your Flash game, right?
 
 If that's so then I think you have a crossdomain issue, but a workaround
 'may' be to still use your containing HTML page to send and verify the
 data, and only use your SWF to trigger the submission of the form using
 the ExternalInterface class.
 
 It might be more than you can achieve given your tight deadline, but
 it's another option...
 
 Does that make sense?
 
 C:
 
 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul
 Steven
 Sent: Friday, 26 November 2010 7:57 AM
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] Advice on calling subscriber script onanother
 server
 
 Hi Chris
 
 I simply need to send the new subscriber information to the distant
 server
 
 I was given an html form by my client that had to be converted to Flash
 for
 the game. The form has 2 hidden variables and then 3 other variables,
 name,
 email and telephone. The flash form submitted the data to the script on
 the
 remote server (signup.ashx) fine when running from the IDE as the client
 was
 able to confirm the data was added but due to the security restrictions
 of
 flash it doesn't work from in the browser as my game is on one domain
 and
 the script on another. 
 
 Any advice appreciated
 
 Thanks
 
 Paul
 
 
 
 
 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Chris
 Foster
 Sent: 25 November 2010 20:51
 To: Flash Coders List
 Subject: RE: [Flashcoders] Advice on calling subscriber script on
 another
 server
 
 Hi Paul,
 
 Are you relying on the other server to return information for you to use
 in your game? Or are you simply required to send new subscriber
 information to the distant server?
 
 C:
 
 
 
 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul
 Steven
 Sent: Friday, 26 November 2010 5:37 AM
 To: 'Flash Coders List'
 Subject: [Flashcoders] Advice on calling subscriber script on another
 server
 
 My flash game needs to call a script on another server to update a
 subscriber list with a name and and email address. I thought all was
 working
 fine while testing from the IDE but have just realised it doesn't work
 when
 testing in a browser.
 
 I realise this is probably something that requires a crossdomain.xml
 file on
 the other server but this is not possible. I therefore seek advice on if
 there is any other solution to call a script and pass parameters to a
 script
 on another server. The script I am calling is a ashx file which I
 believe is
 asp. 
 
 Any help really appreciated
 
 Thanks
 
 Paul
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 This e-mail, including any attached files, may contain confidential and
 privileged information for the sole use of the intended recipient.  Any
 review, use, distribution, or disclosure by others is strictly
 prohibited.
 If you are not the intended recipient (or authorized to receive
 information
 for the intended recipient), please contact the sender by reply e-mail
 and
 delete all copies of this message.
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Juan Pablo Califano
I think the easiest option would be creating some sort of proxy in php, if
that's what's available to you on your server.

The only potential problem is (your) server configuration. Sometimes,
external connections are not allowed, so calling functions like
file_get_contents() with an external url won't work.

Also, it seems you need to POST your data, so it's a bit more complex but
not too much.

A week ago or so I had a similar scenario. Though there was a crossdomain
allowing connections from the production server, there was no crossdomain
policy for the staging and dev environments. I also had to receive and send
cookies, so I googled a bit and found this class, which was easy to use and
worked nicely for me

http://scripts.incutio.com/httpclient/

Some sample code for a POST request (taken from the project I worked on,
just slightly modified) :

$client = new HttpClient(theotherserver.com);
//  this will print out useful info, enable it when debugging!
// $client-setDebug(true);

$client-post(/theservice.ashx, array(
'first_var'= 'foo',
'second_var'= 'bar',
'etc'   = 'blah',
));

//  check status code here...
if($client-getStatus() == 200) {
//  a string with the server's response
$response_raw_data = $client-getContent();
}

Maybe you can give this a try, it's very simple to install and use (just
download and include the php file; you can find more code examples in the
site).

Again, in some configurations this code could not work; if any external
connection in your server is rejected, then there's not much you can do. But
even in the worst case, maybe you could find a third server that you have
control over and that allows you to open external connections, so you could
add a crossdomain there and run the php http client over there. Then,
instead of talking directly to the ad server or a local php script, you'd
call a third server that you control, which will proxy the communication
between flash and the ad server.

Hope it makes sense!

Cheers
Juan Pablo Califano

2010/11/25 Paul Steven paul_ste...@btinternet.com

 Thanks for all your help Henrik

 I will ask the site in question in the morning. I was under the impression
 it would be like every person who used Microsoft Office asking Microsoft to
 add a cross domain file for their particular scenario. To be honest I just
 panicked when the client reported tonight that this functionality didn't
 work and after trying to create a php file that would call the ashx file
 for
 me without success and doing a good bit of searching on google, I thought
 perhaps if there was a simple solution to this that someone on Flash Coders
 may know and be able to help me in my hour of need.

 Anyway I will email the site now though as it is UK based assume that I
 will
 not get any reply until tomorrow (which is too late!)

 Thanks for the advice



 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
 Andersson
 Sent: 25 November 2010 20:34
 To: Flash Coders List
 Subject: Re: [Flashcoders] Advice on calling subscriber script on another
 server

 Paul Steven skriver:
  Thought I could get some help here not labelled lazy!
 

 You do realize that it takes just as long to simply ask the site in
 question right?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Advice on calling subscriber script on another server

2010-11-25 Thread Paul Steven
Awesome! Thank you Juan - that worked perfectly! I did get caught out for a 
while by not adding 

require_once HttpClient.class.php

But once I realised I had omitted this, it worked a treat. 

Many thanks!

Paul



On 26 Nov 2010, at 02:25, Juan Pablo Califano califa010.flashcod...@gmail.com 
wrote:

 I think the easiest option would be creating some sort of proxy in php, if
 that's what's available to you on your server.
 
 The only potential problem is (your) server configuration. Sometimes,
 external connections are not allowed, so calling functions like
 file_get_contents() with an external url won't work.
 
 Also, it seems you need to POST your data, so it's a bit more complex but
 not too much.
 
 A week ago or so I had a similar scenario. Though there was a crossdomain
 allowing connections from the production server, there was no crossdomain
 policy for the staging and dev environments. I also had to receive and send
 cookies, so I googled a bit and found this class, which was easy to use and
 worked nicely for me
 
 http://scripts.incutio.com/httpclient/
 
 Some sample code for a POST request (taken from the project I worked on,
 just slightly modified) :
 
$client = new HttpClient(theotherserver.com);
//  this will print out useful info, enable it when debugging!
// $client-setDebug(true);
 
$client-post(/theservice.ashx, array(
 'first_var'= 'foo',
 'second_var'= 'bar',
'etc'   = 'blah',
 ));
 
//  check status code here...
 if($client-getStatus() == 200) {
//  a string with the server's response
 $response_raw_data = $client-getContent();
 }
 
 Maybe you can give this a try, it's very simple to install and use (just
 download and include the php file; you can find more code examples in the
 site).
 
 Again, in some configurations this code could not work; if any external
 connection in your server is rejected, then there's not much you can do. But
 even in the worst case, maybe you could find a third server that you have
 control over and that allows you to open external connections, so you could
 add a crossdomain there and run the php http client over there. Then,
 instead of talking directly to the ad server or a local php script, you'd
 call a third server that you control, which will proxy the communication
 between flash and the ad server.
 
 Hope it makes sense!
 
 Cheers
 Juan Pablo Califano
 
 2010/11/25 Paul Steven paul_ste...@btinternet.com
 
 Thanks for all your help Henrik
 
 I will ask the site in question in the morning. I was under the impression
 it would be like every person who used Microsoft Office asking Microsoft to
 add a cross domain file for their particular scenario. To be honest I just
 panicked when the client reported tonight that this functionality didn't
 work and after trying to create a php file that would call the ashx file
 for
 me without success and doing a good bit of searching on google, I thought
 perhaps if there was a simple solution to this that someone on Flash Coders
 may know and be able to help me in my hour of need.
 
 Anyway I will email the site now though as it is UK based assume that I
 will
 not get any reply until tomorrow (which is too late!)
 
 Thanks for the advice
 
 
 
 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
 Andersson
 Sent: 25 November 2010 20:34
 To: Flash Coders List
 Subject: Re: [Flashcoders] Advice on calling subscriber script on another
 server
 
 Paul Steven skriver:
 Thought I could get some help here not labelled lazy!
 
 
 You do realize that it takes just as long to simply ask the site in
 question right?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders