For this problem, look into HTTP::Request for info on to craft your own request bodies.
In reply to Re: Perl Socket (to mimic PHP code) by Joost in thread Perl Socket (to mimic PHP code) by inblosam