Hi Carols, yes, i see the source of referer.cgi, but what is the code in path1.cgi and path2.cgi ?
Martin > > I used REBOL's CGI object. Look: > > at the page I named "referer.cgi" I put > > select system/options/cgi/other-headers "HTTP_REFERER" > > Did you see the source code of referer.cgi page? > > Carlos > > > > > > > > Em Sex 24 Out 2003 14:55, martin mauchauffee escreveu: >> Hi Carlos >> >> Yes it'a a solution, what did you do to make the redirection ? send >> header >> ? or with apache ? >> >> > Hello Martin >> > >> > Check both URL below. They go to same page REFERER.CGI >> > and there I identify the path user took >> > >> > http://www.revistaeletronica.com.br/cgi-bin/path1.cgi >> > http://www.revistaeletronica.com.br/cgi-bin/path2.cgi >> > >> > >> > Carlos >> > >> > Em Qui 23 Out 2003 06:34, martin mauchauffee escreveu: >> >> Carlos >> >> >> >> Yes, and ( in your example, ) in the INDEX.R, I need a word that >> >> contains >> >> "dir/dir1/dir" for client1 and "dir/dir2/dir" for client2 >> >> >> >> > Martin, >> >> > >> >> > Well if I understood this time >> >> > what you need is something that >> >> > can tell you where from the client came. >> >> > >> >> > For instance: >> >> > >> >> > If client1 demands http://host/dir/dir1/dir and client2 demands >> >> > http://host/dir/dir2/dir you must have ways of telling this to >> INDEX.R >> >> > >> >> > Is that? >> >> > >> >> > Carlos >> >> > >> >> > Em Qua 22 Out 2003 14:42, martin mauchauffee escreveu: >> >> >> Tanx for your contribution >> >> >> >> >> >> I try to re-explain since the begining >> >> >> >> >> >> I have a script "index.r" at the root of my server. >> >> >> And a ".htacess" that contains : "DirectoryIndex /index.r" that >> >> >> >> means if >> >> >> >> >> an URL like "http://host/dir/dir/dir" was demande by a client. >> apache >> >> >> always get the "/index.r" >> >> >> Because they are a "/" in the "DirectoryIndex /index.r" >> >> >> >> >> >> now, if every URL call the same script "index.r", I need to get >> the >> >> >> >> URL >> >> >> >> >> ask by the client >> >> >> ( to create a navigator of my server ) >> >> >> >> >> >> in the apache config, I have : >> >> >> AddHandler rebolweb .r >> >> >> Action rebolweb /cgi-bin/rebolweb.cgi >> >> >> >> >> >> in the "index.r", I have : >> >> >> probe system/options >> >> >> >> >> >> that return : >> >> >> home: %/e/program%20files/easyphp/cgi-bin/ >> >> >> script: %/e/PROGRA~1/easyphp/cgi-bin/rebolweb.cgi >> >> >> path: %/e/program%20files/easyphp/cgi-bin/ >> >> >> boot: %/e/rebol/rebol >> >> >> args: ["hello"] >> >> >> do-arg: none >> >> >> link-url: none >> >> >> server: none >> >> >> quiet: true >> >> >> trace: false >> >> >> help: false >> >> >> install: true >> >> >> boot-flags: 4145 >> >> >> binary-base: 16 >> >> >> cgi: >> >> >> make object! [ >> >> >> server-software: "Apache/1.3.24 (Win32) PHP/4.2.0" >> >> >> server-name: "192.168.0.152" >> >> >> gateway-interface: "CGI/1.1" >> >> >> server-protocol: "HTTP/1.1" >> >> >> server-port: "80" >> >> >> request-method: "GET" >> >> >> path-info: "/index.r" >> >> >> path-translated: "e:/documents and >> >> >> settings/moechofe/bureau/index.r" >> >> >> script-name: "/cgi-bin/rebolweb.cgi" >> >> >> query-string: "hello" >> >> >> remote-host: none >> >> >> remote-addr: "192.168.0.152" >> >> >> auth-type: none >> >> >> remote-user: none >> >> >> remote-ident: none >> >> >> Content-Type: none >> >> >> content-length: none >> >> >> other-headers: ["HTTP_ACCEPT" >> >> >> >> >> {application/x-shockwave-flash,text/xml,application/xml,application/xhtm >> >> >> >> >>l+x >> >> >> >> >> ml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,ima >> >> >> >> >>ge/g if;q=0.2,text/css,*/*;q=0.1} "HTTP_ACCEPT_CHARSET" >> {iso-8859-3, >> >> >> utf-8, utf-16, iso-8859-1;q=0.6, *;q=0.1} "HTTP_ACCEPT_ENCODING" >> >> >> "deflate, gzip, >> >> >> x-gzip, identity, *;q=0" "HTTP_ACCEPT_LANGUAGE" >> "fr;q=1.0,en;q=0.9" >> >> >> "HTTP_CONNECTION" "Keep-Alive, TE" "HTTP_HOST" "moe.singapour.com" >> >> >> "HTTP_TE" "deflate, gzip, chunked, identity, trailers" >> >> >> >> "HTTP_USER_AGENT" >> >> >> >> >> "Opera/7.21 (Windows NT 5.0; U) [en]"] >> >> >> ] >> >> >> ] >> >> >> >> >> >> query-string contains "" ( nothing ) > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
