in reply to Re: Perl CGI return 400 Bad request response with JSON content
in thread Perl CGI return 400 Bad request response with JSON content
Not working code, Returning as 400 status but content type is html only.print CGI::header({type => 'application/json', status => '200 OK', print "$json_encoded_data";
print CGI::header({type => 'application/json', status => '400 Bad Requ +est', print "$json_encoded_data";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl CGI return 400 Bad request response with JSON content
by cavac (Prior) on Apr 04, 2022 at 09:11 UTC | |
|
Re^3: Perl CGI return 400 Bad request response with JSON content
by Anonymous Monk on Apr 04, 2022 at 09:14 UTC | |
by dineshyagappan (Initiate) on Apr 07, 2022 at 10:42 UTC | |
by Anonymous Monk on Apr 07, 2022 at 11:07 UTC |