Perl Script to handle the POST operation and Multi-threaded upload operation using HTTP