# define the XML request (REVISE) if ($econfig =~ /ReviseInventoryStatusRequest/ ) { $req1 = "" . "" . "". "$token". "". "en_US". "High". "". "$uuid". "$myprice1". # "4" . "". ""; } # POST VIA SINGLE CALL API if ($apipost == 1) {$apipost = 0 ; # WRITE THE XML REQUEST TO FILE open (UPCWRITE, '>apirequest1.txt');print UPCWRITE "$req1 stop\n";close(UPCWRITE); # LOAD THE XML REQUEST BACK IN print "WOOT";print "$req1";open(F,'apirequest1.txt');@req1=;close F;$request ="@req1"; # make the call my $objRequest = HTTP::Request->new( "POST", "https://api.ebay.com/ws/api.dll", $objHeader, $request ); # deal with the response my $objUserAgent = LWP::UserAgent->new; my $objResponse = $objUserAgent->request($objRequest); if (!$objResponse->is_error) { print $objResponse->content;} else {print $objResponse->error_as_HTML;} } # if ($apipost == 1)