Smersh2000
IS-IT--Management
Hello,
I have some experience in Perl, but this is the first time i deal with HTTP requests. Here is my problem - i'm trying to send a PUT request using LWP::UserAgent. Everything is working fine - the file gets posted (i'm working with eXist DB through REST), as long as i'm working in open collection (that is guest user can modify and create documents. I need to be able to make the PUT request as an authorized user. How do i do this using HTTP:Headers? I've been sitting here trying to figure it out for a while, but wasn't able to get any examples. CPAN entry for HTTP::Headers gives a list of functions but not a single example on how to use it.
Any help is much appreciated!
Thanks,
TS
I have some experience in Perl, but this is the first time i deal with HTTP requests. Here is my problem - i'm trying to send a PUT request using LWP::UserAgent. Everything is working fine - the file gets posted (i'm working with eXist DB through REST), as long as i'm working in open collection (that is guest user can modify and create documents. I need to be able to make the PUT request as an authorized user. How do i do this using HTTP:Headers? I've been sitting here trying to figure it out for a while, but wasn't able to get any examples. CPAN entry for HTTP::Headers gives a list of functions but not a single example on how to use it.
Any help is much appreciated!
Thanks,
TS