Sending files to webservers and Rebol
[1/4] from: al:bri:xtra at: 13-Nov-2000 23:14
Sharriff wrote:
> Can you give me a clue as to how I´m going to do that with REBOL?
Hi, Sharriff.
Can you give us an idea of your intent about sending files to a webserver?
What's the intended result after a file is sent to the webserver? Should the
webserver then display that file on the browser or what?
I think we are all talking past each other -- not communicating in the same
context.
Andrew Martin
ICQ: 26227169
http://members.nbci.com/AndrewMartin/
[2/4] from: sharriff:aina:med-iq at: 13-Nov-2000 10:51
Hi Andrew!
I am coding bits of REBOL CGI scripts for my Intranet framework. For
security reasons, I have included an admin section from which user data is
stored and given rights to to "View", "Publish" or "EDIT" pages..
Everything works fine now with editing and viewing, but I would need a
mechanism for publishing.
I want normal users without "Publish" rights to be able to save there
documents in a PENDING directory of the server, and to separate different
categorys and topics, in a sub-directory of PENDING. A cgi form is created
with "PUBLISH" buttons from which a user with PUBLISH rights would be able
to publish (HTML/WML/XHTM/XML) web content. This would mean on creating new
content, a user must have the ability to creat not only files, but
directorys too for different categorys of the WEB site.
Have you got a cleaner idea fot his problem for me? :-)
Regards
Sharriff Aina
med.iq information & quality in healthcare AG
"Andrew
Martin" An: <[rebol-list--rebol--com]>
<[Al--Bri--xtra]. Kopie:
co.nz> Thema: [REBOL] Sending files to webservers and Rebol
Gesendet von:
rebol-bounce@
rebol.com
13.11.00
23:14
Bitte
antworten an
rebol-list
Sharriff wrote:
> Can you give me a clue as to how I´m going to do that with REBOL?
Hi, Sharriff.
Can you give us an idea of your intent about sending files to a webserver?
What's the intended result after a file is sent to the webserver? Should
the
webserver then display that file on the browser or what?
I think we are all talking past each other -- not communicating in the same
context.
Andrew Martin
ICQ: 26227169
http://members.nbci.com/AndrewMartin/
[3/4] from: tim::johnsons-web::com at: 13-Nov-2000 7:51
Hi Sharriff.....
I'm not sure if I follow this thread correctly, but
let me tell you what I do in some of my CGI
programming. None of what follows should even
be rebol-specific!
1)Take as an example that a web page is displayed
by a cgi program. Now we don't have to reference
that cgi program's URL directly, the URL could
be imbedded as a dummy frame source.
2)Given that we are displaying a page by a cgi program,
then pathinfo could be used to control the display of
the content.
Let's says that display.r diplays a certain content.
; below for readonly
http://www.mydomain.com/cgi-bin/display.r/readonly
; below for user
http://www.mydomain.com/cgi-bin/display.r/userprivilege/userpassword
;below for administrator
http://www.mydomain.com/cgi-bin/display.r/adminprivilege/adminpassword
Given that the privileges that set properly, then what could follow are switches
in which the cgi-program holding the content would then post changes as appropriate
to whichever directory you wished.... pending, or immediate, you would then have
the control.. given the appropriate access rights, then rebol could read, write,
create, delete directories at will.
Perhaps you find this useful, if not, please accept my apologies if I have
muddied the waters further.
Regards
-tim
[Sharriff--Aina--med-iq--de] wrote:
[4/4] from: sharriff:aina:med-iq at: 14-Nov-2000 7:21
Thanks Tim!
could you explain further? if one single web-page is displayed how would I
differentiate the users with different rights? do you mean based on a
certain right "flag", a user gets a version of this page? excuse my lack
understanding the example.
Best regards
Sharriff Aina
med.iq information & quality in healthcare AG
Tim Johnson
<[tim--johnsons] An: [rebol-list--rebol--com]
-web.com> Kopie:
Gesendet von: Thema: [REBOL] Re: Antwort: Sending files to webservers and Rebol
rebol-bounce@
rebol.com
13.11.00
16:51
Bitte
antworten an
rebol-list
Hi Sharriff.....
I'm not sure if I follow this thread correctly, but
let me tell you what I do in some of my CGI
programming. None of what follows should even
be rebol-specific!
1)Take as an example that a web page is displayed
by a cgi program. Now we don't have to reference
that cgi program's URL directly, the URL could
be imbedded as a dummy frame source.
2)Given that we are displaying a page by a cgi program,
then pathinfo could be used to control the display of
the content.
Let's says that display.r diplays a certain content.
; below for readonly
http://www.mydomain.com/cgi-bin/display.r/readonly
; below for user
http://www.mydomain.com/cgi-bin/display.r/userprivilege/userpassword
;below for administrator
http://www.mydomain.com/cgi-bin/display.r/adminprivilege/adminpassword
Given that the privileges that set properly, then what could follow are
switches
in which the cgi-program holding the content would then post changes as
appropriate
to whichever directory you wished.... pending, or immediate, you would then
have
the control.. given the appropriate access rights, then rebol could read,
write,
create, delete directories at will.
Perhaps you find this useful, if not, please accept my apologies if I have
muddied the waters further.
Regards
-tim
[Sharriff--Aina--med-iq--de] wrote: