intercepting url

Posted by jmls on 01-Sep-2011 14:41

When running webspeed, we invoke something like

http://localhost/cgi-bin/cgiip.exe/WService=foo/a/path/to/some/dotr

and webspeed runs the program foo/a/path/to/some/dotr

is there a way of shorting this ?

http://localhost/cgi-bin/cgiip.exe/WService=foo/a/path/to/some/dotr

where "path" is the actual program to run, and to/some/dotr is a parameter or field that I can get ?

I'm wanting to add some form of controller, but don't want to use post or get options in the url

(Similar to ruby on rails)

All Replies

Posted by Admin on 01-Sep-2011 14:50

Try modifying src/web/objects.p.

You'll find there

RUN run-web-object IN web-utilities-hdl (AppProgram) NO-ERROR.

That runs the actual "program foo/a/path/to/some/dotr" you should be able to shorten it there and pass the other part (your parameter part) as a user-field or so.

Posted by jmls on 01-Sep-2011 15:05

you mean src/web/objects/web-disp.p, right ?

What I want to do is go down one directory level at a time, trying to

find a .p that matches the folder name

/a/b/c

would run b.p (no a.p) with c as some sort of data

/w/x/y/z

would run z.p (no w.p, x.p or y.p)

On 1 September 2011 20:50, Mike Fechner

Posted by Admin on 01-Sep-2011 15:10

you mean src/web/objects/web-disp.p, right ?

 

Yes. Sorry, long time no deep WebSpeed hacking anymore

This thread is closed