Hello,
I'm currently writing a server handler for a C++ comet server and I'm unsure how to divide a url path into these both variables. Does the sum of both have to be path part of the url (according to rfc3986)? If so, can I choose the SCRIPT_NAME freely and than just fill PATH_INFO with the remaining part and add a '/' if that remaining part is empty? Example:
path: '/'
=> env['SCRIPT_NAME'] = '/'; env['PATH_INFO'] = '/'
path: '/a/b'
=> env['SCRIPT_NAME'] = '/'; env['PATH_INFO'] = '/a/b'
or => env['SCRIPT_NAME'] = '/a'; env['PATH_INFO'] = '/b'
or => env['SCRIPT_NAME'] = '/a/b'; env['PATH_INFO'] = '/'
is this right?
best regards
Torsten
--
Torrox GmbH & Co. KG
persönlich haftender Gesellschafter: Torrox Verwaltungs GmbH, Hannover (Amtsgericht Hannover, HRB 207530)
Geschäftsleitung: Dipl.-Ing. Torsten Robitzki
Adresse: Stolzestr. 26; 30171 Hannover
Handelsregistereintrag: Amtsgericht Hannover, HRA 202170
Telefon:
+49 511 31018758