- RaZVy* | 26 Sep 2011 17:33
Picon
Favicon

Passing swf flash vars using curl?

Hello. Is it possible to pass flash vars to a swf file using curl? 
I tried with 
<?php
   header("content-type: application/x-shockwave-flash" );
  $url = "http://mywebiste.com/videoPlayer.swf?settingsFile=st.xml"; 
  $ch = curl_init(); 
  curl_setopt($ch, CURLOPT_URL, $url); 
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

  $result = curl_exec($ch); 

  curl_close($ch);
  echo $result; 
?> 
Also tried with post fields stil it didn't work. I tried the above with a php file that reads the videoPlayer.php and the same result. 
Dose anybody know the answer?Thanks
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Bartłomiej Blicharski | 26 Sep 2011 22:32
Picon

Re: Passing swf flash vars using curl?

if you send vars from server to server swf, you cannot see that in swf instance on the client side

2011/9/26 - RaZVy* <razvy_402 <at> yahoo.com>
Hello. Is it possible to pass flash vars to a swf file using curl? 
I tried with 
<?php
   header("content-type: application/x-shockwave-flash" );
  $ch = curl_init(); 
  curl_setopt($ch, CURLOPT_URL, $url); 
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

  $result = curl_exec($ch); 

  curl_close($ch);
  echo $result; 
?> 
Also tried with post fields stil it didn't work. I tried the above with a php file that reads the videoPlayer.php and the same result. 
Dose anybody know the answer?Thanks

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php


_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

Gmane