Un proxy PHP pour flash FLEX Silverlight

Si vous développez des applications  flash, vous avez du vous confronter aux problèmes de cross domain. Pour des raisons de sécurité le plugin flash player bloque la lecture de données d’autres sites.

Voici un script PHP qui agit comme proxy et qui récupère les data du site, il nécessite la librairie CURL de PHP :

$ch = curl_init();
$timeout = 30;
$userAgent = $_SERVER[‘HTTP_USER_AGENT’];

curl_setopt($ch, CURLOPT_URL, $_REQUEST[‘url’]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);

$response = curl_exec($ch);

if (curl_errno($ch)) {
echo curl_error($ch);
} else {
echo $response;

Pour CURL:

  1. supreme hoodie

    I am also commenting to let you understand what a great encounter my daughter encountered visiting your blog. She noticed numerous things, with the inclusion of what it’s like to have a wonderful coaching mood to let other people easily comprehend some tricky subject matter. You actually did more than our own desires. Thanks for giving these essential, dependable, revealing and in addition unique guidance on your topic to Evelyn.

  2. golden goose sneakers

    I am also commenting to make you know what a remarkable encounter my daughter had viewing the blog. She discovered a good number of details, not to mention how it is like to have a marvelous teaching nature to let the others just fully understand certain multifaceted things. You really surpassed visitors’ expected results. Thank you for presenting the warm and friendly, healthy, revealing as well as unique guidance on that topic to Evelyn.

  3. bape clothing

    I would like to convey my respect for your generosity for all those that have the need for guidance on this particular idea. Your very own dedication to getting the solution all-around ended up being rather important and has continually helped most people much like me to get to their ambitions. Your own important suggestions entails a great deal to me and much more to my office workers. Thanks a lot; from all of us.

  4. off white outlet

    I would like to voice my love for your kindness supporting those individuals that have the need for guidance on this one concept. Your personal dedication to passing the solution all over came to be quite functional and has in every case made people just like me to achieve their pursuits. Your own informative help and advice means much a person like me and still more to my peers. With thanks; from all of us.

  5. off white outlet

    I simply desired to thank you so much yet again. I’m not certain what I could possibly have done in the absence of the tips discussed by you directly on such a area. It was actually a very horrifying situation in my opinion, but being able to see this well-written avenue you resolved it made me to jump with joy. I’m just grateful for the advice as well as wish you really know what an amazing job you are carrying out teaching some other people with the aid of your blog. Most likely you have never met all of us.

  6. kyrie irving shoes

    I simply needed to say thanks once more. I am not sure the things I would have worked on in the absence of the actual recommendations shown by you concerning such theme. It was actually the challenging dilemma for me, nevertheless discovering your expert style you managed that forced me to cry for happiness. Now i’m thankful for the advice and thus have high hopes you find out what an amazing job that you’re carrying out instructing the others all through your site. I am sure you haven’t met any of us.

  7. westbrook shoes

    I must convey my passion for your kind-heartedness giving support to those individuals that need help with in this issue. Your very own commitment to passing the solution around came to be extremely helpful and has in every case permitted girls much like me to reach their dreams. This informative instruction indicates so much to me and additionally to my peers. Thank you; from all of us.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.