Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Web Services

by packetstormer (Monk)
on Jun 20, 2013 at 11:07 UTC ( #1039948=note: print w/replies, xml ) Need Help??

in reply to Web Services

Thanks for the replies.

I have query though (and I realise this might seem like a newbie query!) but if I was to use path info for resource access would I need to have a corresponding script in each directory on my webserver? That is, "/id" directory contains it's own "/details" contains the script?

Replies are listed 'Best First'.
Re^2: Web Services
by derby (Abbot) on Jun 20, 2013 at 12:26 UTC

    No, you do not. You could have it as /cgi-bin/script_name/id -- and then use CGI's path_info method to get the appropriate info. If you're really into it, I would recommend Dancer or Mojolicious over bare-bones CGI. One of the big wins for those two frameworks are the router DSL they provide that abstracts all that low-level path_info/param handling away.

    Also, since you're really at the beginning web developer stage, seek out a local Perl Mongers meeting for assistance.

      Thanks derby - there is no Perl Mongers meet in my country though! I will struggle on!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039948]
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: (13)
As of 2016-10-24 19:59 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (309 votes). Check out past polls.