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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



George
New User

Sep 11, 2008, 10:09 AM

Post #1 of 2 (1878 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!

George

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


George
New User

Sep 16, 2008, 8:21 AM

Post #2 of 2 (1854 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!

Cheers

George

 
 


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

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