Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

REST Server dispatching problem

Status
Not open for further replies.

George1963

Programmer
Sep 11, 2008
2
GB
Hi
I am writing a REST server but struggling to map the REST compliant logical URI to a physical URI.

All I have come up with so far is a RewriteRule directive in .htaccess which maps the logical URI to my handler cgi routine. This does the redirection ok, but I lose the query arguments, since I can not access the logical URL from within my program.

There has to be a better way than this, surely? Has anyone out there managed to write a REST server in Perl yet? Any pointers?

Any help would be greatly appreciated!

George
 
Follow up -

If only I had RTFM!
mod_rewrite documentation covers the voodoo required to extract values from the logical URI and pass them as parameters to your program.

Works a treat, but if you know a more elegant/efficient way to do REST dispatching, please let me know!

Cheers
George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top