Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: HTTP PUT Request with separate values in csv

by Veltro (Hermit)
on May 16, 2018 at 16:52 UTC ( #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
Node Status?
node history
Node Type: note [id://1214670]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2021-01-17 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?