Notes on Reference Citations - Version 2.71, by Dr. Herong Yang
Error while using LWP::Socket to send XML Data
'connect() - Establishing a Socket Communication' tutorial was cited in a PerlMonks forum post in 2013.
The connect() - Establishing a Socket Communication tutorial was cited in a PerlMonks forum post in 2013.
Subject: Error while using LWP::Socket to send XML Data Date: May 10, 2013 Author: mmartin Source: https://community.oracle.com/thread/2536800?tstart=2 >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. > >... Ok so I got this working... So I use this Perl Script along with another one that runs in the background on a remote terminal server. This script will now establish a socket connection with the remote server, send an initial "acceptance" message so the remote server knows it is a valid connection. If the remote server does not receive the valid string it will close the connection. ... If anyone finds themselves trying to do something similar to this I found a few really good sites that helped me through this: DOCUMENTATION: http://search.cpan.org/~dapm/perl-5.14.4/ext/Socket/Socket.pm REALLY GOOD EXAMPLES HERE: http://www.binarytides.com/perl-socket-programming-tutorial/ http://www.herongyang.com/Perl /Socket-connect-Establish-Socket-Communication.html
Table of Contents