mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-19 03:25:05 +00:00
JsonUtils: quieter
This commit is contained in:
@@ -74,7 +74,7 @@ sub json_request {
|
|||||||
sub json_post {
|
sub json_post {
|
||||||
my ($uri, $rh_data) = @_;
|
my ($uri, $rh_data) = @_;
|
||||||
my $url = xpand($uri);
|
my $url = xpand($uri);
|
||||||
print STDERR "URI $uri\n";
|
#print STDERR "URI $uri\n";
|
||||||
my $req = HTTP::Request->new("POST" => $url);
|
my $req = HTTP::Request->new("POST" => $url);
|
||||||
$req->header('Accept' => 'application/json');
|
$req->header('Accept' => 'application/json');
|
||||||
$req->header('Content-Type' => 'application/json; charset=UTF-8');
|
$req->header('Content-Type' => 'application/json; charset=UTF-8');
|
||||||
|
|||||||
Reference in New Issue
Block a user