[Laszlo-user] Using PHP to proxy content

Henry Minsky henry.minsky at gmail.com
Wed Apr 5 09:30:31 EDT 2006


Can you run LiveHTTPHeaders extension in firefox to see what HTTP request is
actually being made? Or examine the log on your web server to see what is
being requested?

Also, how come you are putting this into an <img> tag inside of a text
field? Is there
any way you could use a regular Laszlo view instead? I ask because Flash's
implementation of inline images inside of text fields is shot full of bugs,
it barely works at all.





On 4/5/06, Matt Hubbard <matt_hubbard at okcareertech.org> wrote:
>
> Hello,
>
> My environment:
> Linux
> lps-3.1.1
> Flash 7 plugin
> SOLO deployment
>
> I am attempting to proxy an swf from another domain into an openlaszlo
> text view using a server-side proxy written in php.  In lzx I create a
> URL to that points to the proxy script passing several parameters
> (session id, action to be executed, and a urlencoded filename).
>
> var asset = '<img src="' + gateway + '?PHPSESSID=' + canvas.sid +
> '&assetSrc=' + assetSrc + '&action=media' + '"/>';
>
> Then I add the resulting <img> tag to a text view called content:
>
> content.addText(asset);
>
> I don't get an error, but nothing shows up.  If I write  the asset var
> to the Debugger it reads correctly and if I visit that same url with my
> browser directly it returns and plays the animation just fine, so I
> think the php works.  I notice that if I change my proxy call from:
>
> http://www.example.com/proxy.php?x=y&a=b
>
> to
>
> http://www.example.com/proxy.swf
> (here proxy.swf is my php proxy script with a hardcoded url to retrieve
> )
>
> Suddenly it works.  However, I need to be able to pass the resource to
> retrieve to the proxy.  Can anyone shed some light on what I need to do
> to get the text view to recognize my url as a call for flash?
>
> Many thanks,
>
> Matt Hubbard
>
>
>
>
> _______________________________________________
> Laszlo-user mailing list
> Laszlo-user at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>



--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20060405/bdbf3893/attachment-0001.html


More information about the Laszlo-user mailing list