Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Looking for REST equivalent to WWW::Mechanize

by markjugg (Curate)
on Sep 12, 2006 at 18:08 UTC ( #572590=note: print w/replies, xml ) Need Help??

in reply to Looking for REST equivalent to WWW::Mechanize

I find this post confusing. I understand REST to be centered around clean URLs. In that case, maybe CGI::Application::Dispatch is what you are looking for. It works well for me. You mentioned delivering XML, but that's not technically part of REST.

On the other hand, WWW::Mechanize should have little trouble retrieving XML. Your application just needs to serve it.

It would be helpful to see some more concrete examples or description of the problem you are running into.

  • Comment on Re: Looking for REST equivalent to WWW::Mechanize

Replies are listed 'Best First'.
Re^2: Looking for REST equivalent to WWW::Mechanize
by talexb (Canon) on Sep 12, 2006 at 20:31 UTC

    It may be that my post is confusing .. I'm still trying to understand how it all works, and what tools to use from CPAN.

    I'm working from the REST definition in the REST article:

      REST strictly refers to a collection of architectural principles (described below). The term is also often used in a looser sense to describe any simple interface that uses XML (or YAML, JSON, plain text) over HTTP without an additional messaging layer such as SOAP.
    I'm trying to emit XML in response to clean URLs with a view towards providing a simple interface for the web application that I'm writing.

    My plan is that I'll provide clients with Perl or shell scripts to upload/download files, without having to worry about providing something that needs to parse XHTML web pages -- instead, they'll be able to talk XML, which will be strictly data, no ornamentation. This is a follow-on to my previous post on the same topic.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Re^2: Looking for REST equivalent to WWW::Mechanize
by talexb (Canon) on Sep 13, 2006 at 20:47 UTC

    After fiddling a bit with XML, I decided to take an easier approach, and decided to use YAML instead of XML. I now have a working test suite that tests against both the XHTML and the REST/YAML interfaces, using the same test data. I ended up just using LWP::UserAgent for that -- WWW::Mechanize wasn't necessary for testing of the REST/YAML side.

    And I need to thank you for that -- you stated that XML wasn't necessarily part of REST, and you're right. Once again, Perlmonks provides great feedback, something that I rely on, since I'm the only Perl developer at my employer who is focussing on the web.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://572590]
[marto]: so I have to work Saturday, which is good and bad. Bad in the sense that I have to be hear early :( Good in that I am here only as support for another client project, so I get to spend the day working on my personal 'ToDo' list, without the kids :P
[Corion]: marto: Ooof - but yes, being there as only second level support or third level support is good and if you have enough things that you can work on, it won't be a wasted (if paid) day
[marto]: I've opted for a day off later on, rather than pay. I only have to do about 45 mins work for the client, but do need to hang around
[Corion]: marto: Even better ;)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-02-28 10:08 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (399 votes). Check out past polls.