Thanks, I will look into the Curl modules, didn't realize that Perl had any. I did look into LWP but I couldn't find info about support for the full range of HTTP methods, only for POST/GET. Perhaps I didn't look long enough! | [reply] |
$ perl -MHTTP::Request -e'
print HTTP::Request->new( DELETE => "http://..." )->as_string
'
DELETE http://...
| [reply] [d/l] |
Hmmm... interesting. I couldn't locate any documentation about it supporting all the methods. Good to know that it does. I think another reason I stopped looking was because I got the notion that I would have had to manually authenticate using Base64, and it started getting more complex than the one line of code I originally wanted to write.
This little piece of code is really just to create and delete some users from a webservice I created, so I can run some junit tests with a populated server.
It's amazing how sometimes the sideshow is more research than the main event! =)
Thanks again for your insight. I am obviously only a novice Perl programmer. I definitely appreciate all of the advice/help I've received today.
| [reply] |