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. stephen curry shoes

    I and my friends were found to be examining the good points from the blog while immediately I had a terrible feeling I never thanked you for those secrets. Most of the ladies were consequently warmed to read through them and have absolutely been making the most of those things. Thank you for indeed being indeed accommodating as well as for making a decision on variety of notable things most people are really needing to be aware of. Our sincere apologies for not expressing gratitude to you earlier.

  2. kawhi leonard shoes

    I needed to compose you that little bit of observation so as to thank you so much the moment again for your personal lovely basics you have contributed at this time. This is quite pretty generous with you to make without restraint just what most people might have made available for an e-book to make some cash for their own end, certainly given that you could possibly have tried it in case you wanted. These concepts additionally worked to become great way to know that someone else have the identical interest similar to my own to learn more with respect to this condition. I’m certain there are a lot more fun opportunities up front for individuals who scan your blog.

  3. yeezy supply

    I would like to convey my gratitude for your kind-heartedness for folks who absolutely need help with this important field. Your personal dedication to getting the solution across had been rather important and has allowed those just like me to reach their aims. Your entire insightful key points entails a great deal to me and even more to my mates. Thanks a lot; from everyone of us.

  4. golden goose sneakers

    I simply wanted to construct a remark so as to appreciate you for these unique tactics you are giving at this site. My extended internet search has now been compensated with good information to share with my colleagues. I ‘d say that most of us visitors are really blessed to be in a great place with many awesome individuals with interesting ideas. I feel truly grateful to have used your entire website and look forward to some more awesome minutes reading here. Thanks a lot once more for everything.

  5. offwhite

    I simply wanted to type a quick message to appreciate you for these fabulous tips and tricks you are sharing at this site. My long internet look up has at the end been honored with good quality information to exchange with my great friends. I ‘d tell you that many of us readers actually are very endowed to be in a notable site with so many brilliant individuals with useful tips and hints. I feel pretty fortunate to have come across the site and look forward to plenty of more enjoyable moments reading here. Thank you again for everything.

  6. lebron james shoes

    I together with my guys came taking note of the excellent tactics found on the blog and then suddenly developed a horrible suspicion I never thanked you for them. These men were for this reason happy to study them and now have honestly been enjoying them. We appreciate you indeed being so thoughtful and also for figuring out such incredibly good useful guides most people are really eager to learn about. My sincere apologies for not expressing appreciation to you sooner.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *