omebody could hack pu and send in to
you cgi program it is not generally a good idea to DO the decode-cgi
block.
WARNING
Sterling
> Hi guys!
>
> Sorry to bother you with this newbie question:
>
> Why does one have to "make object!" after a "decode-cgi" ? just
tect
the system from mailbox edits while the box is open... could royally
mess things up.
If I'm incorrect anywhere here or somebody knows all the nifty
details, feel free to correct and/or add.
Sterling
> Thanks Sterling,
>
> I will perform the suggested testing -- I wouldn't wa
from
somebody else (like me). And I don't want to responsible for lost
email in case the server you access is totally weird. :)
Sterling
> For you email gurus out there:
>
> I open an email port like this:
>
> bag: open pop://user:[EMAIL PROTECTED]
> length? bag
> == 5
&g
of thing. Those are
some footsteps that we would rather not follow and I think you don't
want us headed that way either.
I believe Carl already has in mind how he wants to solve these types
of formatting issues within REBOL. I don't know when it'll happen
though.
Take care,
ne by line? I would
think it would be a little faster that way. Maybe I'll try that later
as a break from /Command work.
Sterling
g!
(print ["Name:" wrd "Value:" value])
]
]
So instead of printing them out you can do something with the values
you get for each word. The suggestion to use make object! with
decode-cgi just makes handling most data very easy. In the less
frequent cases you may h
If it's a GPF that takes down the universe, you would be implying that
we're all living in MS Universe 2000 or something like that. Maybe
that's why we die, eh? It's a bug in the system.
Sterling
> Actually, I think one can make a stronger statement. I suspect
&
ch file if the number of appearances is different.
Well, enjoy!
Sterling
REBOL [
Title: "Simple token diff"
Purpose: {
I don't know, really. It just tries to
figure out how many REBOL tokens are different
between two files. Somebody thought it would
be neat.
Are you perhaps behind a firewall? It looks like REBOL's FTP protocol
is having trouble establishing the active connection for the data.
Try setting:
system/schemes/ftp/passive: true
and try it again.
Sterling
> With a trace/net on, one can see that Rebol parses internally the UR
a bug, we want to know about it so we can fix
it and post a new experimental build for you to try out.
Sterling
> Hello, Rebolers!
>
> Has anyone had the experience where you are trying to
> download something big and it just times out?
> The default in system/schemes/default/
third link, how much data you want to store in
this item, and how you will be manipulating it.
Sterling
> Hello:
> I'd like to implement a *triple* linked list in rebol.
> Below is a "c" structure: I'd welcome advice on how
> to translate this to a r
> > I'm more concerned as to why the tree to the right, looks like a giant
> > snarling rat?
>
> It totally does!!!
It totally is!!
Why do you think we get so much done around here? We have to wait
until it goes to sleep to leave the office. :)
Sterling
It is meant for dealing with markup languages like HTML, XML, and
sothers in a simple way; try:
foo: load/markup http://www.yahoo.com
or any other site you like. You'll see that you get back a block of
tags and strings... it kind of unzips the web page.
Sterling
> Does anybody k
By the way, thanks to everybody who posted those fixed up scripts. It
saved me some work I didn't have time to spend. I'm not out of the
hotseat yet so I better run.
Thanks again! (:
Sterling
I'm guessing that somebody out there has modified the original RIP
script to be recursive. I'm in the middle of some stuff and could
sure use that right about now. Anyone want to help me out and mail it
to me, post it to the list, or post it to REBOL.org?
Thanks,
Sterling
ou get to decide how you want your mail to look. If you want an
extra reference, check out the %attach.r script on REBOL.org under the
'email area of the script library. I wrote that to send mail with
MIME attachements (looks like you're doing the same given that content
type he
functionality of many web browsers and the
restart command that exists in some ftp servers.
If these changes make it into a full release version of REBOL then
thes files will be removed from this location never to be seen from
again as they perish into /dev/null.
Sterling
If I totally messed up and
ect
on the http file, you can use port/size to see the size:
>> http: open/direct/binary http://www.grafxsource.com/RnaG/6-3-00-Caitlin-45.rm
>> http/size
== 15182055
Yup. It's big.
Well, you'll excuse me now. I just promised to do something and I
guess I'll do it now.
Sterling
You need to use OPEN/DIRECT as READ will do the entire page read.
try a: open/direct http://whatever-you-like
while [data: copy a] [write/append %output-file data]
Sterling
> Again, if there is no ftp available
> but the file is there as http:/something
> and you want to page it o
Ah. now I see what's happening. The attachments are embedded in
another attachment tag. My detach sctip doesn't handle that just yet
and no time to fix it right now.
I'm going to mail you a different one off the list that should work.
Sterling
> OK, making the change and
love to see more protocols get added.
Sterling
t;--" not fimd headers/content "^/--"] [print
"breaking... attachents finished" break] ; we're at the end of the message attachments
That way, it should gracefully exit if it either finds the proper end
marker or if it can't find another attachment.
Sterling
> Doing a
email text and returns a block of filenames
and decoded base64 attachments present in the email}
mail [object!]
][
headers: mail
print "Starting decoding process..."
boundary: headers/content-type
.. rest of script...
and then call 'detach msg'
Sterling
> I
Try setting REBOL_VIEW instead of REBOL_HOME... that work better?
Sterling
> I managed to track down a nifty util called WINSET that allows me to set
> an evironment variable during the netlogon procedure. The variable is
> visable to any application launched after it is set (i.e.
>
n' to pass the rest of the form
data on.
Both scripts are available form rebol.org...
http://www.rebol.org/web/http-post.r
http://www.rebol.org/web/parse-form.r
Anyway, it'll help when you want to use a form where there is no
alternate GET method to use.
Sterling
system/schemes/ftp/handler 'open true
This will set FTP into passive mode which will hopefully solve your
problem.
In the current version of REBOL/view and future versions of
REBOL/core, you can accomplish this same thing with this line:
system/schemes/ftp/passive: true
Sterling
> I ha
Hey, do you mind sending me that code? I'd like to see it.
Sterling
> I've hacked the ftp protocol so you can do "read/custom
> ftp://ftp.rebol.com/test.txt [restart 10]", which starts downloading the
> test.txt file, but skipping the first 10 bytes. It's on
'clear pop' will delete all messages from the current pop location on
This will empty the mailbox if pop is at the head - 'head? pop'
? send ; for info on the send function to send mail
and throw in a loop like FOR, FOREACH, or FORALL, and... watch out!
You're almost
[
write/append DstFile join line newline
]
So if you do that to a small file (just 2-3 lines), what does the
trace show is happening?
Sterling
> Hi Sterling:
> Sorry, your modification resulted in a crash also.
> write/append DstFile [line newline]
> Be interesting to
e back and forth and do the edit
locally.
It might be neat to implement some way to get that download restart
command worked in but how do you put that info into the URL?
Sterling
> Sterling, in your note to Tim to say that
> append should work, although it would be slow and inefficient.
system/schemes/default/timeout
can be set to a time, the default is 30 seconds.
That'll set the timeout for all protocols... you can just change one
if you want, like system/schemes/ftp/timeout: 200
Happy slow modeming!
Sterling
> Hi!
>
> Thanks to all who ask to my (stupid)
be looked into.
Sterling
> I'm reposting this, as I've had no takers from the
> previous, and I note that Holger may be monitoring
> I have tried a couple of different approaches to rewrite a file
> and an FTP site, and the result is always that rebol crashes
> an
e-lisp" load-path))
(load "rebol")
(require 'rebol)
(add-hook 'rebol-mode-hook (lambda () (font-lock-mode 1)))
(setq auto-mode-alist
(cons (cons "\\.r\\'" 'rebol-mode) auto-mode-alist))
))
Sterling
> Hello sterling,
>
> Tuesday
print emacs-mode: read http://www.rebol.org/rebol.el
Enjoy!
Sterling
> I think someone name Sterling...
> you might try [EMAIL PROTECTED]
> He sent me a module for emacs (or was it
> vi/vim) several months ago, but I no longer
> have it.
> HTH
> Tim
print data: read http://www.rebol.org/rebol.el
It's not perfect as the indentation on close blocks is wrong and it
gets freaked out sometimes by the occasional multiline string. But
it's still good and useful.
Sterling
> Is there a Rebol-syntax hightlighting module for emacs?
>
> --yoh
POST data has a more complex structure... almost like
an email with attachments. You will have to deal with that data
yourself.
Sterling
> On Wed, Apr 19, 2000, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I've done some more digging, and it
fault proxy settings from falling through into
it.
Sterling
> Hi,
>
> AFAIK generic (CERN) proxy is for HTTP only. Shouldn't REBOL use it
> only for HTTP protocol if it is set in network settings, and don't use
> any proxy for SMTP and other protocols?
>
> --
&
If you have a proxy set, REBOL will go through it by default. You can
make a list of bypass machines like this:
system/schemes/default/proxy/bypass: ["center.uniba.sk"]
That should bypass the proxy when it connects to your mail server.
Sterling
> Hi,
>
> I have p
easy guys,
Sterling
> Hi Sterling,
>
> one little detail: your approach works well enough with this particular
> example because space is one of the desired delimiters.
>
> Conceivably Tim may want a more universal solution that enables him to
> determine whether or no
You really ought to just try these things. ;)
You'll be surprised at what you find.
>> parse "one#two%three four" "#%"
== ["one" "two" "three" "four"]
>>
Sterling
> I would like to have a function to do
> the
Soon.
Sterling
> So, would someone please fill me in... does REBOL connect to
> datasources, or not?
>
> TIA,
> Ron
>
> ron allen hornbaker õ¿õ¬
> mailto:[EMAIL PROTECTED]~
> humankind systems, inc.
> http://humankindsystems.com/LoftCam
>
>
>
>
eric and see if that fixes the problem.
Sterling
> [EMAIL PROTECTED] wrote:
>
> > Hi Petr,
> >
> > have you tried to set the http proxy settings? I.e.
> >
> > >> system/schemes/http/proxy/host: proxy.sec.trz.cz
> > >> system/schemes/ht
f so, the server may timeout before REBOL
does and close the connection on you causing REBOL to throw that
error.
Sterling
> I am trying to author a script to download via ftp. Yesterday I hurdled the
> problem of getting files bigger than 16 MB by using a function suggested by
> John to &
Larry, Nigel.
Sterling
> Hi Nigel, Sterling
>
> There does appear to be some kind of problem with the REBOL ftp is this
> instance. I was able to get the dir listing with WS-FTP although the server
> was slow (took about 150 seconds).
>
> With REBOL I got (don't need the
", so what error other than a timeout have you received? That
may be of some use.
Sterling
> Thanks for that. The directory that causes the problem is set drwxr-xr-x and
> all the files are -r--r--r--. So I don't think this is the same problem.
>
> This certainly looks lik
Check out www.rebol.org.
Lots of cool scripts there including scripts to attach and detach
files in email.
Sterling
> Does anybody know how (or has written something) to handle multipart email
> messages? I mean things like listing, extracting attachments from a message
> when readi
Now that's really cool Paul! I just had a chance to take a look and
you've done a really good job of it. I wanted to add the highliting
features like you have to the REBOL.org list-archive search engine but
never got to it.
ANyway, great job!
Sterling
> The Rebol search eng
If you grab proxy.r from REBOL.org and run that you can see what you
browser sends and maybe that'll shed light on it.
Sterling
> Petr,
>
> here's the results of turning on the trace...
>
> >> trace/net on
> >> do %getsecurepage.r
> Script: &
You sure your webserver is set up properly?
What're you using anyway?
Sterling
> Nope, same symptoms. --cgi and -c are synonyms, no? When I change the first
> line to #!/usr/local/bin/rebol -cs, I get the same behavior as with --cgi
> -s, namely: Rebol initialization strings
Do
#!/usr/local/bin/rebol -cs
instead.
That should solve your problem.
Sterling
> I can't seem to get cgi-bin stuff working properly, and the problem seems
> sort of strange. I'm using the latest Rebol on a late (2.2 kernel) Red Hat
> Linux. I have a file (test-cgi.r)
read http://www.rebol.org/rebol.el
No guarantees about it... I use it in XEmacs and Jeff uses it in
normal Emacs but others have reported that it does "nothing at all"
for them.
Sterling
> Are there any syntax highlighting files for Rebol out there? There was
> discussion abo
Yeah... that's the wrong IP address. nobody is ever going to reach
you at that address since it mean "localhost" to every computer out
there. Let me see what I can come up with and I'll get back to you on
this one.
Sterling
> Hi Sterling,
>
> When I tried the
y, ip masquerading,
or anything like that are you?
Sterling
> >> Net-log: [["STOR" port/target] ["150" "125"]]
> >> ** User Error: Server error: tcp 425 Can't build data connection:
> >> Connection refused..
> >
> >Pardon a dum
ot
set up properly so that REBOL runs in CGI mode.
I thikn that info for WinNT may have been missing the --cgi part in
the line 'c:\path\to\rebol.exe --cgi %s %s'. There should be a --cgi
in there to prevent the window from popping up and do all the useful
CGI stuff.
Sterling
> Hate to
Get message number 38514 from SELMA or read it at rebol.org:
http://www.rebol.org/userlist/archive/38/514.html
Sterling
> I have searched the mailing list for PWS and CGI and even Microsoft...but
> have not found information on setting up Rebol to work (cgi) with Personal
> W
It does nothing? Even if you load up a script and then do
'Meta-X rebol-mode'? Odd.
Sterling
> Something like
>
> http://www.rebol.org/rebol.el
>
> However, it does nothing (zero, zip) to the installation of EMacs at my
> university, so I wish you be
Thanks for the tip... I'll see what I can do when I have a few minutes
to work on that. BTW, is '>' a legal URL character? I'll check on
that too. And, yes, open-proto is used to get through the proxy (if
one is set up).
Sterling
> Hi,
>
> just tested newe
Try this... you just need to write out and read in as binary to get
the file read and sent properly.
Sterling
#!/usr/local/bin/rebol -csq
REBOL []
file: read/binary %test.xls ; file is 17920 bytes long
prin [
{Content-Type: application/octet-stream; name="file"} newline
otocol loaded
Daytime protocol loaded
SMTP protocol loaded
POP protocol loaded
HTTP protocol loaded
FTP protocol loaded
NNTP protocol loaded
There is also a list archive residing at http://www.rebol.org.
Sterling
> IS there a list archive? I have been lookiing for one.
>
> I think this
miss one. You don't want that, do you?
So please send in the bug report.
Thanks,
Sterling
> STERLING:
>
> I used to get multiple "connecting to..." messages also.
> As stated in several of my previous messages,
>
> My script would halt after about 16 connections
t, does it print out multiple "connecting to ..."
messages?
Sterling
> I have a problem that I hope can be solved. I operate several websites
> and would like to make a script to upload the site data whenever there is
> a change. My goal is to use Rebol.
>
> I wrote the
lit, SORTing by date and time together will be difficult.
Sterling
> Try
> >> citas: [
> [["Javier Delgado" [EMAIL PROTECTED] 8:30 1/12/1999]
> [["Pancho lopez"[EMAIL PROTECTED]9:00 2/12/1999]
> [["Margarita Masa"
Do this:
trace/net on
smtp-port: open smtp://you.mail.server
you'll see you just got logged in to the SMTP server
and then just use:
insert smtp-port "your command"
Sterling
> Hi
>
> A question:
>
> Using REBOL
> How can I test if the username has a
tcp ports.
Sterling
> Hi all,
>
> to send a cgi POST query I'd like to open a port to a particular
> web server. As I'm behind a proxy I'd like to know if it's
> possible to set a proxy for every open command.
>
> port: open [
> scheme: 't
directory but still with the ability to go back to the real root.
Sterling
> Hi Joel,
>
> Not sure why clean path is limited to non urls. Why not put in a request for
> it to be modified, to [EMAIL PROTECTED] ?
>
> In the mean time there is function to clean http paths on the Reb
get it added to the CGI How-to on rebol.com this
week.
Sterling
> I have been working for some time now with PERL cgi, but so far I cannot get
> any REBOL cgi programs running. Even the cgiform.r only opens up REBOL
> instead of returning the information submitted by the form.
>
&
We don't yet support using FTP proxies. The problem is that many (if
not all, I don't know) FTP proxies return HTML rather than normal FTP
responses. This causes us a problem for parsing that HTML since it
can be totally different for each proxy.
Sterling
> Hi, I once more tri
ass: ["host1.name" "host2.name" ...]
maybe you want to bypass "*.internal.net" or "mail.internal.net"
That should work for you... let me know if you have any further
problems.
Sterling
> Just hold on
> the thing is .. i do have a proxy server .
able to help out with your external problem also.
Sterling
roxy configuration" is selected, are there any items
in the list with both the proxy and port number filled in?
The simple thing to do, I think, is check with oyur net admin and find
out what proxies you have available to you to get external web access.
Sterling
ation.
Sterling
> how do i specify proxy-user and proxy-passwd??
> subhro.
>
>
Check your REBOL version:
>> system/version
It needs to be 2.2 to have replace. If you don't have it, just:
>> upgrade
Sterling
> When I do a:
>
> str: make string! read %infile.txt
> replace/all infile "X" "Y"
>
> I get the error: repl
the code to parse in and write out standard gzip headers so then
REBOL could read and write standard gzip'd files. I think you'd also
have to write the particular checksum code that's in gzip but for a
decompression first pass you could skip the checksum check.
Next step after that
try this. Instead of always sending mailfile.r, send the file
specified on the command line.
Sterling
REBOL [
Title: "Email a Text File"
File: %mailfile.r
Date: 10-Sep-1999
Purpose: {Send a text file (as text of message).}
Note: {
Puts the name of the f
rk with certain databases and know where good resources are please
mail me offline at [EMAIL PROTECTED] We can't test them all but if
we can save the time to gather all the software we can test more of
them.
Any assistance is greatly appreciated and it'll help you in the long
run. :)
Sterling
The final ODBC user view has not been fully determined yet so I can't
say quite how it will look.
Sterling
> ODBC Implementation Question...
>
> > Also what are the other main selling points beyond ODBC database access
> > at this stage...?
>
> > Command w
en parsed.
This way you don't have to break up the string into a block and write
a whole loop to iterate over it when parse can do all the iteration
for you.
Sterling
> Andrew,
>
> I used the following snippet to translate logic analyzer trace files
> (which have fixed width
d not get the new mails. You'd have to check mail
again. If somebody knows differently, share with us please... but
that AFAIK is how POP works.
Sterling
> Hi,
>
> 2)
>
> mb: open pop://pekr:[EMAIL PROTECTED]
>
> once I connect to my pop account, 'mb ref
Hey! Now that's an idea! Sounds like you have some interest in it!
We all can't wait to hear about your progress as you get
started on this new project of yours. Hehe... if you show interest in
it, it's all yours.
(:
Sterling
> Nick Lothian wrote:
> > Actually,
{GET /mythica/areas/arthurian/ HTTP/1.0
User-Agent: Mozilla/4.5 [en]
Host: www.pantheon.org
Accept: */*
}
print copy a
I've put in an enhancement request for changing the default User-Agent
field in HTTP requests.
Sterling
> If i type this into Rebol:
>
> print read http://www.p
{GET /mythica/areas/arthurian/ HTTP/1.0
User-Agent: Mozilla/4.5 [en]
Host: www.pantheon.org
Accept: */*
}
print copy a
I've put in an enhancement request for changing the default User-Agent
field in HTTP requests.
Sterling
> If i type this into Rebol:
>
> print read http://www.p
te.
>>
To keep your copy of REBOL totally up to date. Compose is one of the
many cool new features in Core 2.2. Check it out.
Sterling
> Just as I sent my question I read the answer in a message sent yesterday
> by "Bo" Lechnowsky...
>
> Good, I got %redit-arch
users. Aonther
good site to check out is REBOL.org. There are lots of cool things
there, all powered by REBOL including an open script archive,
searchable list archive, chat room with some REBOL bots in it you can
talk to, and more.
Sterling
> I have a question about some commands. I h
hat needs to be configured.
And yes, by the fact I felt it necessary to post all those
instructions for Win and IIS/PWS yo ucan freely guess what I think of
them.
Sterling
> Instructions were given for CGI under Windows & IIS/PWS. Would those
> instructions be any different for thos
.
To bypass servers from the proxy, set the names like this:
system/schemes/default/proxy/bypass: ["pop3.domain.net" "smtp.domain.net"]
and you should be all set.
Sterling
> hi,
> i connect to the net through a proxy server after specifying a login and a
> password -
I'm unclear about what you're asking. What does a O'Reilly's Website
have to do with setting up CGI for REBOL under Windows? What am I not
seeing?
Sterling
> Any instructions for those of us on Win 95(or 98) and O'Reilly's WebSite?
>
> Dave Fobare
>
the "default value" and enter the path to REBOL.exe like
c:\REBOL\rebol.exe -cs %1 (the %1 (numeral one, not L) is important
and required)
18. Exit Regedit
Hope it all works and you never have to do this again. ;)
Sterling
l
for %attach.r
How's that?
Sterling
> Hey,
>
> has anyone on the list figured out how to handle uuencoded mail
> attachments, or mime base64 encoded ones? I do get the occassional
> attached file, and it'd be great if I could get REBOL to spit out the
> decoded binaries
Just re-submit via email in either way you want to:
- with the script as the body
- with the script as an attachment
It'll get updated.
Sterling
> I just submitted a game, Tactix, to www.rebol.org and it was accepted and
> listed. I'd like to revise the Purpose: to make it
sion. I'm hoping to have some time this weekend to look
into that.
Sterling
> Also, when does the main page get updated? Or am I impatient? ^_^
>
> Andrew Martin
r (or printer)... if that port changed
you would have no way of knowing where to talk to. Once the
connection from the host to the target is made, the target knows what
the port number of the host is so it can talk back.
Good luck.
Sterling
> After looking at the proxy.r program on the Web
Is this what you're looking for?
repeat x 10 [
write/append %allpages.html read join %page [x %.html]
]
; this will continue to append to the file if you run it multiple
; times so be careful. If you want to avoid that behavior, you can
; 'delete %allpages.html'
sorry... just need a test to see if list archive is getting list mails
now.
Sterling
e about it towards the end of this next week so I remember
to get it done... this isn't stuff I can really work on during work
hours; it's just not that high on the priority list. :)
I noticed I didn't get it inserted quite right so it's not getting new
messages...
Ste
t any lost messages are posted.
Sterling
tly.
I guess I'm in charge of the archive right now so forward any problems
and suggestions to me, [EMAIL PROTECTED]
Enjoy!
Sterling
> Jeff,
>
> Sounds great! But I heard the same thing two months ago. I'll believe it
> when I see it. BTW, keep up the good work!
>
> Cheryl
>
OK, you've got a different type of FTP proxy. We don't support that
yet but I'll put it on the list. That last posting clears things up a
lot... thanks.
Sterling
> Does it help you to identify, what is going on during the connection?
>
> -pekr-
>
>
I think so... but I don't think that it is a _required_ field so it
may not be filled in though if you are using some of the more common
browsers and webservers youwill not run into that type of problem.
Odds are, it's safe to assume you'll get the length.
Sterling
> Hi Ste
ser, Commander)
where you are having problems with REBOL.
Sterling
> Thanks for the answer, Sterling.
>
> As for the socks, we are using socks4. BUT! - I've never tried ftp from my work. The
> problem I had in the past was with "ordinary" website downloading, which is no
d boundary line.
If you don't get the content-length or don't trust the webserver to
always give it to you, you'll have to read in blocks of data, search
them for the section breaks, and save the parts you want... a little
uglier but still not too hard.
that help?
Sterling
> I need
1 - 100 of 111 matches
Mail list logo