Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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]
[LanX]: jdporter adjusted the best nodes algorithm not long ago to public demands, my theory more complicated= more error prone
[Eily]: what error? I see no issue :P
LanX and: = harder to reproduce. ..
[LanX]: sorry, i didn't break math yet, but it's top priority on my todo list
[choroba]: does your list start with number 5?

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2018-03-20 10:20 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (249 votes). Check out past polls.