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

Post using LWP useragent curl post request to useragent request

by smarthacker67 (Beadle)
on May 25, 2018 at 21:31 UTC ( [id://1215232]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     curl ENDPOINT \
      -H "Authorization: Bearer ACCESS_TOKEN" -X POST \
      -F attributes='{"name":"test.txt", "parent":{"id":"0"}}' \
      -F file=@test.txt
    
  2. or download this
    my $json = encode_json {"name" => "test.txt", "parent" => {"id" => 0}}
    +;
    
    ...
               Content_Type => 'multipart/form-data' .
      );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1215232]
Approved by Athanasius
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (None)
    As of 2024-04-25 01:21 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found