Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: HTTP PUT Request with separate values in csv

by Veltro (Hermit)
on May 16, 2018 at 16:52 UTC ( [id://1214670]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict ;
    use warnings ;
    
  2. or download this
    my $xml = XML::Twig->new()->parsefile('example.xml') ;
    $xml-> ... ;
    $xml -> get_xpath('//ipaddress',0) -> set_text("<IP HERE>") ;
    
  3. or download this
    my $uri="https://hostname:9060/ers/config/networkdevice/<ID HERE>";
    my $req = HTTP::Request->new( ...
    $req->content($xml->sprint) ; # Strange, why is there another $xml->sp
    +rint here?
    $req->...
    
  4. or download this
    my $res = $ua->request( $req ) ;
    # Check the outcome of the response
    ...
    } else {
       print $res->status_line, "\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1214670]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-16 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found