CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
REST Server: logical -> physical URI problems


New User

Sep 11, 2008, 10:09 AM

Post #1 of 2 (2385 views)
REST Server: logical -> physical URI problems Can't Post

Hello Folks

I am writing a REST server, but struggling to see how I can dispatch the service calls correctly.

Currently I have a RewriteRule in .htaccess which redirects the REST compliant logical URI to my handler cgi script. The redirect works fine, but I am losing the parameters that were embedded in the logical URI.

There has to be a better way to do this (for performance reasons if nothing else) and there is next to nothing out there in terms of documentation.

I know that there is some Catalyst stuff for REST dispatching, but I don't want to go down that route if I can avoid it.

Anyone out there written a REST server ok? Can you provide any pointers?

Your help would be greatly appreciated!


(I thought REST was supposed to be *simpler* than SOAP!)

New User

Sep 16, 2008, 8:21 AM

Post #2 of 2 (2361 views)
Re: [George] REST Server: logical -> physical URI problems [In reply to] Can't Post

Follow up -

If only I had RTFM - mod_rewrite documentation explains how to extract values from the logical URI and pass them to your program.

Performance also seems ok, although I haven't really stress tested the service yet.

Hope this helps anyone else who may be wrestling with this stuff.

Of course if you know a better way to dispatch REST calls, please let me know!




Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives