|P is for Practical|
Error while using LWP::Socket to send XML Databy mmartin (Monk)
|on May 09, 2013 at 15:46 UTC||Need Help??|
mmartin has asked for the
wisdom of the Perl Monks concerning the following question:
So here's the story... I have a Flash program running on a server that sits and listens on a port. In order to do this
you need to have a "Flash Policy File" which I have and does work when sending XML Data from a C# program another employee
wrote. So I run the "flashpolicyd.pl" file and pass it my XML "Policy File" which is currently set to receive requests from
ANY host. So that part at least I know works.
So now I'm trying to send some other XML Data to the server using a Perl Script. From the Perl side of things I don't get any
errors. But when I look over at the Server that is listening for a Socket connection, I can see the following in the Windows
CMD Prompt for the output from the "flashpolicyd.pl" script: (*I can see my PC's IP Address)
"Connection from 192.168.x.xxx:56321
Unrecognized request: <FRAME><MESSAGE VAR="TestVariable" TEXT="ValueOFVariable" /></FRAME>"
So for some reason the XML data I'm sending is invalid according to the Perl script "flashpolicyd.pl"...
My Perl script which sends the data to the server from my PC:
I got the code from this link below at search.cpan.org:
If you need to see the "flashpolicyd.pl" file too just let me know, I just got that Perl script from the Web somewhere,
and it does work for another program written in C#, which sends XML Data in pretty much the exact same format.
Anyone have any clue what I could be doing wrong here..? Is there just something I'm missing?
Any thoughts/suggestions would be VERY much appreciated.
Thanks in Advance,