in reply to http post error

my $url = '';

HTTP Error 500 is not a very telling error to work with. What strikes me as odd is that there is no URL used in your example code - so there should be no http happening in the first place. I understand, you edited it out?

Cheers, Sören

Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)

Replies are listed 'Best First'.
Re^2: http post error
by bigup401 (Pilgrim) on Apr 11, 2015 at 13:56 UTC
    yes my $url ='could be any url eg yahoo.com/userapi'; i dont think there is any problem at that part. the problem must be, posting data to the http server and the way i want it to be responded back in json format

      the problem must be, posting data to the http server and the way i want it to be responded back in json format

      Then test it with a simpler approach until you get a useful result - i.e. not an Error. Continue to work in small steps from there.

      Cheers, Sören

      Créateur des bugs mobiles - let loose once, run everywhere.
      (hooked on the Perl Programming language)