in reply to Perl Socket (to mimic PHP code)
I'm not quite sure why you insist on mimicking the broken PHP way of doing this when you can do this simply with LWP::UserAgent:
use LWP::UserAgent; use HTTP::Request; + # ... do your $XML + my $age = LWP::UserAgent->new(); $age->agent('IVR API'); + my $req = HTTP::Request->new(POST => 'http://api.voiceshot.com/ivrapi. +asp'); $req->content_type('text/xml'); $req->content($XML); + my $response = $age->request($req); + print $response->content();
/J\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Socket (to mimic PHP code)
by inblosam (Monk) on Jun 07, 2006 at 16:02 UTC |