Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

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.

In reply to Looking for REST equivalent to WWW::Mechanize by talexb

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • 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:
    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
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (4)
    As of 2020-02-17 10:42 GMT
    Find Nodes?
      Voting Booth?
      What numbers are you going to focus on primarily in 2020?

      Results (71 votes). Check out past polls.