I'm developing a web/REST application using CGI::Application and assorted plugins (CGI::Application::Plugin::Session to handle session cookies, CGI::Application::Plugin::TT for Template::Toolkit, CGI::Application::Plugin::Stream to handle file downloads and CGI::Application::Plugin::DBH to handle DBI), and the web end is now pretty squeaky clean, thanks to some testing using Test::More and WWW::Mechanize.
Now it's time for me to do the REST side of the application -- just a matter of making up some XML templates to match the HTML templates. Of course, I want to do this while continuing to use Test::More so that I can start (finally) to do test-driven development. So what I want is something like REST::Mechanize. Has anyone developed such a tool? I could definitely make use of it.
As a side note (but a relevant one) I note that curl doesn't send cookie information after a re-direct (1), which prevents me from using it to do my testing. I am using URL rewriting to provide my REST-type interface -- that's where the re-direction comes in.
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds
1. See this post for more information.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||