[REBOL] Getting an URL from a form Re:(6)
Cheers, this is just what I was looking for! Now on with the rest of this project that'll probably end up as a Hello-World script.. :) /Regards Stefan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 8 juni 2000 14:24 To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re:(5) Good point. I probably wouldn't have looked now that I think about it :0 Anyhow, try http://www.hembiocenter.se/search.asp?word=line&search=actor http://www.hembiocenter.se/search.asp?word=line&search=title word= search=mailto:[EMAIL PROTECTED]] Sent: Thursday, June 08, 2000 7:34 AM To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re:(4) Hi, of course that isn't the right URL, as it's a swedish site I figured no one would try it. Anyways, the real URL for the site is www.hembiocenter.se in the top left corner you have the search form. Here's a small swedish dictionary: Sök Film = Search Movie Sök = Search Skådespelare = Actor Titel = Title :) Have a look see... /Regards Stefan Falk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 8 juni 2000 13:29 To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re:(3) I'd like to help, but I can't see that the company sells DVD movies at all. I can't find that they have a search page either. I tried to the url you supplied, but it just isn't there for me. Regardless, I would be interested in how you go about parsing the return page when you get to that part. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 08, 2000 3:44 AM To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re:(2) Hi, uhm, I'll try to explain what I want to do. The site I'm looking at is a company that sell DVD movies. They have a function to search for movies. I want to be able to make that search, not by going to their homepage and typing in the form below, but just to enter an URL (or send an URL from a Rebol script actually), and then parse the returned page to get the info I want. The problem is that I don't know the syntax of the URL being sent (if it's possible to use an URL). IE. one of their links show something like: http://www.dvdshop.com/dvdsearch.asp?category=Horror if I press that link I get a list of all the horror movies. However, when it comes to the search form, I'm unable to figure out what the URL should look like. I've tried for example: http://www.dvdshop.com/dvdsearch.asp?title=Scream However, this isn't working, and I'd like to know what the info being sent to their script look like, so I can reproduce it in my Rebol script. As I see it, there's only thing I can do. Learn what all those ? = & etc. mean in a form posted URL and use trial and error... Or if I can capture the info sent from the form somehow to read and be able to reproduce it from a script. //Regards Stefan Falk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 7 juni 2000 20:03 To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re: Hey Stefan, I dont quite understand what your trying to do, but I will try to give you some information you may be able to use anyways. As you should already know HTTP servers take information from forms and pass it to a CGI program using POST or GET. The GET request can pass data via URL encoding such as "www.foobar.com/test.cgi?test=on". With POST, your data is sent additionally, not as part of a URL. This prevents your data from being viewed or entered as a URL, and as I understand was inpart the reason they came up with POST. Hope I helped, --Ryan [EMAIL PROTECTED] wrote: > Hi list, > this might not be Rebol related directly, but since I intend to use the info > for a rebol script I guess it's ok. Anyways, here we go. > > There's a page with a search form, and I'd like to know what the POSTed URL > look like. The source goes something like this: > > > > > > VALUE="actor" CHECKED> > > > VALUE="title"> > SRC="search.gif" BORDER=0 ALT="Search"> > > > Of course, I tried to (naive as I am), to post an url that has the form data > like this: http://blaaah.com/search.asp?title=blaaah > > but this isn't the right one. Is there any way I can instead of performing > the search just see the url? > > Any info appreciated > > //Regards Stefan
[REBOL] NT cgi query #163 Re:(2)
It's definately not reading the user.r file, but I'm not sure if I understand what your saying. Could you expound a bit for my newbie brain please? Thanks TBrownell --- [EMAIL PROTECTED] wrote: > I'm not sure if this is the same problem, but I saw > a similar type > of behavior when I used a WinNT cmd file to run > rebol scripts which > sent email. > > My problem was the result of how NT and rebol > interacted to find > user.r. I ended up writing a separate cmd file to > set directories > and then start the rebol script. I then called the > new launcher cmd > file from the original cmd file. > > Hope this helps. > > Matt > > > > [EMAIL PROTECTED] wrote: > > > Ok. new problem. > > > > Have core running on NT, user.r seems ok. > > When i do a send [EMAIL PROTECTED] from the console it > works > > fine, but if i have a script called via cgi that > has > > send [EMAIL PROTECTED] in it... it doesn't work at all? > > > > go figure? > > TBrownell > > > > __ > > Do You Yahoo!? > > Yahoo! Photos -- now, 100 FREE prints! > > http://photos.yahoo.com > __ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com
[REBOL] load/save objects
Quick question.. I've only found a couple blurbs on the ml archive on this subject but no real snippets of code to toy with. Anyone with such a thing? Didn't find anything on either the rebol.com nor rebol.org sites in regards to this type of thing. On another quick note, anyone know how with /view to center a text object? I've browsed through the object itself but can't seem to properly mix /core and /view commands to calculate an 'at offset to 'text to. BTW, Bo, if you read this one, you rule..I love the new system browser..came in handy for dumping /view tree out to my printer :) Regards, Deryk
[REBOL] REBOL_HOME REBOL_VIEW
Sterling, The setting of REBOL_VIEW env var worked fine, thanks. Shouldn't there be the common variable between all versions though? Regards, Deryk
[REBOL] multi-tasking? Re:(2)
I am kind of doing multi-tasking using /core, but the way I am doing it is not too pretty. It is a temporary solution until /Command comes out. What I do is run multiple instances of REBOL. These instances can communicate with each other using sockets. If you use windows, a batch file like so can start your instances up without waiting for each to end: -win 9x batch file--- start main.r start slave.r start slave.r start slave.r start slave.r Advantages: Poor mans multi-tasking Get something working while waiting for /Command. ??? Disadvantages: Must start processes ahead of time. Waiting processes consume cpu cycles. Having to use Sockets for inter process communication. Requires OS dependent batch file. Obviously will not work on non multi-tasking OS. Security concerns! Probably others... I would first try to fake multi-tasking instead. Of course there is a some things you cant do that with, since REBOL could be held up with the task. --Ryan [EMAIL PROTECTED] wrote: > If you do the following... > > do %script.r > do %script2.r > do %script3.r > > The scripts will execute in succession, but when they complete is up to the > processor, RAM, hard drive, etc. > > This is how I understand it, anyway, because you are essentially mult- > tasking within a single task, which is the REBOL application itself. > > > Hi i'm writting to ask if it's > > possible to launch other scripts > > from a single script, but, without > > having to wait for each script > > to end before the next one can starts. > > > > thanks. timmy > >
[REBOL] Email(Again) Re:(3)
AFAIK, Juno doesn't provide pop and smtp servers. If they did, you wouldn't need to stay in their interface and see their ads. Keith - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 08, 2000 7:15 PM Subject: [REBOL] Email(Again) Re:(2) > Ingo, I fixed that, but it still didn't work. > > YOU'RE PAYING TOO MUCH FOR THE INTERNET! > Juno now offers FREE Internet Access! > Try it today - there's no risk! For your FREE software, visit: > http://dl.www.juno.com/get/tagj.
[REBOL] Rebol/View Win32 and REBOL_HOME envvar Re:(2)
[EMAIL PROTECTED] wrote: > > Try setting REBOL_VIEW instead of REBOL_HOME... that work better? I'll test it when I get to work shortly and let you know the results later on. Thanks. :) Regards, Deryk
[REBOL] Email(Again) Re:(2)
Ingo, I fixed that, but it still didn't work. YOU'RE PAYING TOO MUCH FOR THE INTERNET! Juno now offers FREE Internet Access! Try it today - there's no risk! For your FREE software, visit: http://dl.www.juno.com/get/tagj.
[REBOL] Email(Again) Re:
Hi, if Juno uses "standard" nameing, it should be pop.juno.com smtp.juno.com for pop/smtp, respectively. regards, Ingo Those were the words of [EMAIL PROTECTED]: > Thanks, ParksGW, but I don't know what my pop and smtp settings should > be. > > (I use Juno) > > pop.Juno.com or pop://Juno.com or something > else. > > > YOU'RE PAYING TOO MUCH FOR THE INTERNET! > Juno now offers FREE Internet Access! > Try it today - there's no risk! For your FREE software, visit: > http://dl.www.juno.com/get/tagj. > -- do http://www.2b1.de/ _ ._ ingo@)|_ /| _| _ ingo@| |(_|o(_)| (_| ._| ._|
[REBOL] files Re:
It's done via rebol ... do file.rip unzips all files. Those were the words of [EMAIL PROTECTED]: > I have a question. how do you "unzip" the .rip files?
[REBOL] HTML "pars"ing Re:(3)
Thanks Allen, I added it to the new version, uploaded a few minutes ago, and while I was at it, I added rebol script support via the
[REBOL] files Re:
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 09, 2000 4:12 AM Subject: [REBOL] files > I have a question. how do you "unzip" the .rip files? do %filename.rip That will run the file which then extracts its contents... It is a beautiful concept, I love smart data Cheers, Allen K > > YOU'RE PAYING TOO MUCH FOR THE INTERNET! > Juno now offers FREE Internet Access! > Try it today - there's no risk! For your FREE software, visit: > http://dl.www.juno.com/get/tagj. > >
[REBOL] Getting an URL from a form Re:(3)
Maybe this will help http://www.rebol.cz/~rebol/cgi/ At 09:44 AM 6/8/00 +0200, you wrote: >Hi, >uhm, I'll try to explain what I want to do. > >The site I'm looking at is a company that sell DVD movies. They have a >function to search for movies. I want to be able to make that search, not by >going to their homepage and typing in the form below, but just to enter an >URL (or send an URL from a Rebol script actually), and then parse the >returned page to get the info I want. The problem is that I don't know the >syntax of the URL being sent (if it's possible to use an URL). IE. one of >their links show something like: > >http://www.dvdshop.com/dvdsearch.asp?category=Horror > >if I press that link I get a list of all the horror movies. However, when it >comes to the search form, I'm unable to figure out what the URL should look >like. I've tried for example: > >http://www.dvdshop.com/dvdsearch.asp?title=Scream > >However, this isn't working, and I'd like to know what the info being sent >to their script look like, so I can reproduce it in my Rebol script. > >As I see it, there's only thing I can do. Learn what all those ? = & etc. >mean in a form posted URL and use trial and error... Or if I can capture the >info sent from the form somehow to read and be able to reproduce it from a >script. > >//Regards Stefan Falk > >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: den 7 juni 2000 20:03 >To: [EMAIL PROTECTED] >Subject: [REBOL] Getting an URL from a form Re: > > >Hey Stefan, >I dont quite understand what your trying to do, but I will try to give you >some >information you may be able to use anyways. > >As you should already know HTTP servers take information from forms and pass >it >to a CGI program using POST or GET. The GET request can pass data via URL >encoding such as "www.foobar.com/test.cgi?test=on". > >With POST, your data is sent additionally, not as part of a URL. This >prevents >your data from being viewed or entered as a URL, and as I understand was >inpart >the reason they came up with POST. > >Hope I helped, >--Ryan > > >[EMAIL PROTECTED] wrote: > >> Hi list, >> this might not be Rebol related directly, but since I intend to use the >info >> for a rebol script I guess it's ok. Anyways, here we go. >> >> There's a page with a search form, and I'd like to know what the POSTed >URL >> look like. The source goes something like this: >> >> >> >> >> >> > VALUE="actor" CHECKED> >> >> >> > VALUE="title"> >> > SRC="search.gif" BORDER=0 ALT="Search"> >> >> >> Of course, I tried to (naive as I am), to post an url that has the form >data >> like this: http://blaaah.com/search.asp?title=blaaah >> >> but this isn't the right one. Is there any way I can instead of performing >> the search just see the url? >> >> Any info appreciated >> >> //Regards Stefan > >
[REBOL] multi-tasking? Re:
If you do the following... do %script.r do %script2.r do %script3.r The scripts will execute in succession, but when they complete is up to the processor, RAM, hard drive, etc. This is how I understand it, anyway, because you are essentially mult- tasking within a single task, which is the REBOL application itself. > Hi i'm writting to ask if it's > possible to launch other scripts > from a single script, but, without > having to wait for each script > to end before the next one can starts. > > thanks. timmy >
[REBOL] Dangerous (use of) Secure Re:
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 08, 2000 11:01 PM Subject: [REBOL] Dangerous (use of) Secure > Hi Rebols, > > as I understand it, the main point of Secure is its ability to > restrict the rights of an untrusted script (eg. %untrusted.r), > when the user is not sure, if he/she can run it without eg. > damaging his/her files on the harddisk. > > Here is an example of a naive use of Secure: > > ; create a sanbox directory, if it doesn't exist already > sandbox: %./sandbox/ > if not exists? sandbox [ > make-dir sandbox > ] > ; give the untrusted script file rights in the sandbox and no file > rights elsewhere > orig-rights: do compose/deep [ > secure [ > net allow > file throw > %. [allow read allow execute] > (sandbox) allow > ] > ] > change-dir sandbox > do %../untrusted.r > print "Untrusted script done." > change-dir %../ > ; restore the original rights - potentially dangerous operation - > see below > do reduce ['secure :orig-rights] > > Although the above looks allright, if the untrusted script looks > like: > > Rebol [ > File: %untrusted.r > ] > love-you: func [ > 'level [word! block!] > ] [ > love-you allow > print "I love you!" > ] > set [love-you secure] reduce [:secure :love-you] > > the user's files may get damaged, which implies, that restoring > the security level after executing an untrusted script is > dangerous! > > What do you think? > > Ladislav > Hi Ladislav, Good find. I would have thought that 'secure would be a word that is protected from such redefinition. Redefining it seems like a very obvious hack and not one I'd expect to be available. I hope you're sending it to feedback Cheers, Allen K
[REBOL] set in object 'variable "string" Re:(5)
[EMAIL PROTECTED] wrote: > > You were trying to assign a value to a variable that > > did not exist. > > Yes, but that IS the purpose of "set" No, it is not actually. First of all, IN OBJ 'WORD will return NONE if 'WORD is not in the object context. You cannot set the value NONE to anything. > >> set 'test-word "test words" > == "test words" > >> print test-word > test words > >> > > I have just assigned a value to a variable that previously did not exist. SET did not create a "variable". SET just set the word 'TEST-WORD in the global context to the value "TEST WORDS". 'TEST-WORD already existed in the global context at the time the function SET was evaluated. It has been added to the global context by the interpreter when it parsed the word from the input string {set 'test-word "test words"}. >> 'test-word == test-word >> last first system/words == test-word HTH, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL Programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[REBOL] set in object 'variable "string" Re:(2)
[EMAIL PROTECTED] wrote: > The following syntax doesn't work at all... > > set in object 'word value This works if the word is found the context of the object. Please notice that REBOL's contexts are not extensible; only the global context can be extended with new words. HTH, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL Programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[REBOL] Email(Again)
Thanks, ParksGW, but I don't know what my pop and smtp settings should be. (I use Juno) pop.Juno.com or pop://Juno.com or something else. YOU'RE PAYING TOO MUCH FOR THE INTERNET! Juno now offers FREE Internet Access! Try it today - there's no risk! For your FREE software, visit: http://dl.www.juno.com/get/tagj.
[REBOL] files
I have a question. how do you "unzip" the .rip files? YOU'RE PAYING TOO MUCH FOR THE INTERNET! Juno now offers FREE Internet Access! Try it today - there's no risk! For your FREE software, visit: http://dl.www.juno.com/get/tagj.
[REBOL] Rebol/View Win32 and REBOL_HOME envvar Re:
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. > start->run->command, type 'set' and REBOL_HOME will be there) but > Rebol/view doesn't seem to honor the setting as it says in the docs (var > first, current dir second). Anyone have any insight on this matter? > > Regards, > Deryk
[REBOL] Rebol/View Win32 and REBOL_HOME envvar
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. start->run->command, type 'set' and REBOL_HOME will be there) but Rebol/view doesn't seem to honor the setting as it says in the docs (var first, current dir second). Anyone have any insight on this matter? Regards, Deryk
[REBOL] Declaring a constant Re:(2)
Yes, you can use protect ... but it is not cast in stone, merely in lava ... >> digit-str: "0123456789" == "0123456789" >> protect 'digit-str >> digit-str: "abcdefg" ** Script Error: Word digit-str is protected, cannot modify. ** Where: digit-str: "abcdefg" >> append digit-str "abcdefg" == "0123456789abcdefg" >> digit-str == "0123456789abcdefg" As to my knowledge, there isn't a stone carver in Rebol. regards, Ingo Those were the words of [EMAIL PROTECTED]: > protect 'digit-str > > > How may I set a word to a constant value? > > as in: > > digit-str: "0123456789" ;cast in stone, code can't change it > > TIA > > -Tim -- do http://www.2b1.de/ _ ._ ingo@)|_ /| _| _ ingo@| |(_|o(_)| (_| ._| ._|
[REBOL] /View transparent gif's color Re:
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 08, 2000 6:05 AM Subject: [REBOL] /View transparent gif's color > > Hi, Rebolians > > How to make gif's transparent colour be transparent? > > -Pawel > > > Hi Pawel, Use the 'key effect, the key color is the color that will become transparent. trans-image-face: make face [ image: load %image.gif size: image/size color: none effect: [key 192.192.192] ] You can also make colored transparent elements, without having an image. You just need to make sure that both image and color are set to none or -1 The other thing to remember is the the z order of a pane is determined by the order of the elements in a layout. First items are at the back, later are to the front. attached are two little demos. which show how to stylize and VID to achieve transparency. %smile.r uses the 'key effect Cheers, Allen K smile.r fish.r
[REBOL] SMTP question
Hi! It's any difference on sending an e-mail from a dial-up and a permanent connection. I suppose the settings are correct, because it work with Netscape Messenger in both case (I try it on several networks with same result), but I can send messages only on dial-up connection. Thanks for any help, A.D.ing http://www.zonator.com
[REBOL] parsing by period and newline Re:(4)
FYI- I solved this "parsing by period and newline" problem by replacing all instances of a period followed by a newline with a period followed by a tilde, as follows... end-of-paragraph: rejoin [{.} newline] replace/all article-info end-of-paragraph {.~} Then I just parsed by tilde, as follows... foreach part parse/all article-info {~} [ append content-parts trim/lines part] Of course, this doesn't account for tildes showing up in the original data.
[REBOL] Getting an URL from a form Re:(6)
I did some work on this myself. It's a bit annoying when sites don't have a mechanism for a GET HTTP request. A while back Martin Johannesson wrote a simple http-post script to do those requests. Then, to help automate it a bit, I wrote a form parser that reads a web page, parses out a form and returns an object with that info in it so you can see what it requires to post it back. In the case you are talking about, here's what I can do: >> probe parse-form http://www.hembiocenter.se/menu.asp make object! [ method: 'post action: "search.asp" inputs: [word: none search: "actor" search: "title"] hidden: [] ] Then just change some fields so that your values are filled into the inputs block for the words you want... >> inputs == [word: "sleepy+hollow" search: "actor" search: "title] since 'search' appears twice, it's the radio buttons and the last one will be used. Then... >> page: http-post-form http://www.hembiocenter.se/search.asp inputs and presto! You have your page. On pages with hidden inputs, you will have to do an 'append inputs hidden' 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
[REBOL] Dangerous (use of) Secure
Hi Rebols, as I understand it, the main point of Secure is its ability to restrict the rights of an untrusted script (eg. %untrusted.r), when the user is not sure, if he/she can run it without eg. damaging his/her files on the harddisk. Here is an example of a naive use of Secure: ; create a sanbox directory, if it doesn't exist already sandbox: %./sandbox/ if not exists? sandbox [ make-dir sandbox ] ; give the untrusted script file rights in the sandbox and no file rights elsewhere orig-rights: do compose/deep [ secure [ net allow file throw %. [allow read allow execute] (sandbox) allow ] ] change-dir sandbox do %../untrusted.r print "Untrusted script done." change-dir %../ ; restore the original rights - potentially dangerous operation - see below do reduce ['secure :orig-rights] Although the above looks allright, if the untrusted script looks like: Rebol [ File: %untrusted.r ] love-you: func [ 'level [word! block!] ] [ love-you allow print "I love you!" ] set [love-you secure] reduce [:secure :love-you] the user's files may get damaged, which implies, that restoring the security level after executing an untrusted script is dangerous! What do you think? Ladislav
[REBOL] Getting an URL from a form Re:(5)
Good point. I probably wouldn't have looked now that I think about it :0 Anyhow, try http://www.hembiocenter.se/search.asp?word=line&search=actor http://www.hembiocenter.se/search.asp?word=line&search=title word= search=mailto:[EMAIL PROTECTED]] Sent: Thursday, June 08, 2000 7:34 AM To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re:(4) Hi, of course that isn't the right URL, as it's a swedish site I figured no one would try it. Anyways, the real URL for the site is www.hembiocenter.se in the top left corner you have the search form. Here's a small swedish dictionary: Sök Film = Search Movie Sök = Search Skådespelare = Actor Titel = Title :) Have a look see... /Regards Stefan Falk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 8 juni 2000 13:29 To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re:(3) I'd like to help, but I can't see that the company sells DVD movies at all. I can't find that they have a search page either. I tried to the url you supplied, but it just isn't there for me. Regardless, I would be interested in how you go about parsing the return page when you get to that part. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 08, 2000 3:44 AM To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re:(2) Hi, uhm, I'll try to explain what I want to do. The site I'm looking at is a company that sell DVD movies. They have a function to search for movies. I want to be able to make that search, not by going to their homepage and typing in the form below, but just to enter an URL (or send an URL from a Rebol script actually), and then parse the returned page to get the info I want. The problem is that I don't know the syntax of the URL being sent (if it's possible to use an URL). IE. one of their links show something like: http://www.dvdshop.com/dvdsearch.asp?category=Horror if I press that link I get a list of all the horror movies. However, when it comes to the search form, I'm unable to figure out what the URL should look like. I've tried for example: http://www.dvdshop.com/dvdsearch.asp?title=Scream However, this isn't working, and I'd like to know what the info being sent to their script look like, so I can reproduce it in my Rebol script. As I see it, there's only thing I can do. Learn what all those ? = & etc. mean in a form posted URL and use trial and error... Or if I can capture the info sent from the form somehow to read and be able to reproduce it from a script. //Regards Stefan Falk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 7 juni 2000 20:03 To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re: Hey Stefan, I dont quite understand what your trying to do, but I will try to give you some information you may be able to use anyways. As you should already know HTTP servers take information from forms and pass it to a CGI program using POST or GET. The GET request can pass data via URL encoding such as "www.foobar.com/test.cgi?test=on". With POST, your data is sent additionally, not as part of a URL. This prevents your data from being viewed or entered as a URL, and as I understand was inpart the reason they came up with POST. Hope I helped, --Ryan [EMAIL PROTECTED] wrote: > Hi list, > this might not be Rebol related directly, but since I intend to use the info > for a rebol script I guess it's ok. Anyways, here we go. > > There's a page with a search form, and I'd like to know what the POSTed URL > look like. The source goes something like this: > > > > > > VALUE="actor" CHECKED> > > > VALUE="title"> > SRC="search.gif" BORDER=0 ALT="Search"> > > > Of course, I tried to (naive as I am), to post an url that has the form data > like this: http://blaaah.com/search.asp?title=blaaah > > but this isn't the right one. Is there any way I can instead of performing > the search just see the url? > > Any info appreciated > > //Regards Stefan
[REBOL] multi-tasking?
Hi i'm writting to ask if it's possible to launch other scripts from a single script, but, without having to wait for each script to end before the next one can starts. thanks. timmy
[REBOL] http authorisation - how? Solution Re:(3)
Anton, Brian I've found the problem. Does your password or user-id contain a space? Example from RFC2617 To receive authorization, the client sends the userid and password, separated by a single colon (":") character, within a base64 [7] encoded string in the credentials. basic-credentials = base64-user-pass base64-user-pass = user-pass = userid ":" password userid = * password= *TEXT Userids might be case sensitive. If the user agent wishes to send the userid "Aladdin" and password "open sesame", it would use the following header field: Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== OK lets try this.. enbase join "Aladdin" [":" "open sesame"] == "QWxhZGRpbjpvcGVuIHNlc2FtZQ==" Cool that creates the correct one, but the problem we have is when we include the it as part of the URL. The space is URL encoded. (confirmed from reading a trace) http://Alladin:[EMAIL PROTECTED]/file So Rebol will send the wrong code.. enbase join "Aladdin" [":" "open%20sesame"] == "QWxhZGRpbjpvcGVuJTIwc2VzYW1l" And hence we get the dreaded 401 Not Authorised Error So if you have this problem then use the following method to access the page instead. print read [ scheme: 'http host: "fortytheives.com" user: "Alladin" pass: "open sesame" path: "path/to/file/" target: "file.ext" ] I'm sending in a feedback on this.. Cheers, Allen K - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 08, 2000 8:42 PM Subject: [REBOL] http authorisation - how? Re:(2) > > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, June 03, 2000 6:17 AM > Subject: [REBOL] http authorisation - how? Re: > > > > [EMAIL PROTECTED] wrote: > > >What I want to do is download a html page that requires authorisation. > > >I tried inserting the user name and password in the same fashion as > > >email downloading: > > > > > >read http://user:[EMAIL PROTECTED] > > > > > >but it gives "...server response: .. 401 Unauthorized." > > > > There are two kinds of http authorization, basic and digest. Basic sends > > a clear-text userid and password as part of the headers. Digest sends an > > MD5 message digest of the password - it is newer and more secure. > > > > At this point, REBOL only supports basic authentication. Apparently the > > server you're connecting to doesn't downgrade to basic authentication > > for security reasons. > > > > You may be out of luck, Anton :( > > > > Brian Hawley > > > > > Yes I've struck this today to, on a server that is supposed to be using > Basic Authentication. Does > anyone have confirmation that the Basic Authentication is working? > > Cheers, > > Allen K > > > >
[REBOL] strange ftp error Re:
On Wed, 07 Jun 2000, you wrote: > Hi! > > I run this > > print read ftp://romstar.com/usr/mail/sibiu > > and I get this error (with trace/net on). It is caused by a bug or misconfiguration in the ftp server, which closes its connection after receiving the "CWD ~" command. We are working on a workaround for the next release. -- Holger Kruse [EMAIL PROTECTED]
[REBOL] Declaring a constant Re:(2)
Thank You!! At 05:02 PM 6/7/00 -0500, you wrote: >protect 'digit-str > >> How may I set a word to a constant value? >> as in: >> digit-str: "0123456789" ;cast in stone, code can't change it >> TIA >> -Tim >> > > >
[REBOL] Getting an URL from a form Re:(4)
Hi, of course that isn't the right URL, as it's a swedish site I figured no one would try it. Anyways, the real URL for the site is www.hembiocenter.se in the top left corner you have the search form. Here's a small swedish dictionary: Sök Film = Search Movie Sök = Search Skådespelare = Actor Titel = Title :) Have a look see... /Regards Stefan Falk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 8 juni 2000 13:29 To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re:(3) I'd like to help, but I can't see that the company sells DVD movies at all. I can't find that they have a search page either. I tried to the url you supplied, but it just isn't there for me. Regardless, I would be interested in how you go about parsing the return page when you get to that part. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 08, 2000 3:44 AM To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re:(2) Hi, uhm, I'll try to explain what I want to do. The site I'm looking at is a company that sell DVD movies. They have a function to search for movies. I want to be able to make that search, not by going to their homepage and typing in the form below, but just to enter an URL (or send an URL from a Rebol script actually), and then parse the returned page to get the info I want. The problem is that I don't know the syntax of the URL being sent (if it's possible to use an URL). IE. one of their links show something like: http://www.dvdshop.com/dvdsearch.asp?category=Horror if I press that link I get a list of all the horror movies. However, when it comes to the search form, I'm unable to figure out what the URL should look like. I've tried for example: http://www.dvdshop.com/dvdsearch.asp?title=Scream However, this isn't working, and I'd like to know what the info being sent to their script look like, so I can reproduce it in my Rebol script. As I see it, there's only thing I can do. Learn what all those ? = & etc. mean in a form posted URL and use trial and error... Or if I can capture the info sent from the form somehow to read and be able to reproduce it from a script. //Regards Stefan Falk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 7 juni 2000 20:03 To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re: Hey Stefan, I dont quite understand what your trying to do, but I will try to give you some information you may be able to use anyways. As you should already know HTTP servers take information from forms and pass it to a CGI program using POST or GET. The GET request can pass data via URL encoding such as "www.foobar.com/test.cgi?test=on". With POST, your data is sent additionally, not as part of a URL. This prevents your data from being viewed or entered as a URL, and as I understand was inpart the reason they came up with POST. Hope I helped, --Ryan [EMAIL PROTECTED] wrote: > Hi list, > this might not be Rebol related directly, but since I intend to use the info > for a rebol script I guess it's ok. Anyways, here we go. > > There's a page with a search form, and I'd like to know what the POSTed URL > look like. The source goes something like this: > > > > > > VALUE="actor" CHECKED> > > > VALUE="title"> > SRC="search.gif" BORDER=0 ALT="Search"> > > > Of course, I tried to (naive as I am), to post an url that has the form data > like this: http://blaaah.com/search.asp?title=blaaah > > but this isn't the right one. Is there any way I can instead of performing > the search just see the url? > > Any info appreciated > > //Regards Stefan
[REBOL] Getting an URL from a form Re:(3)
I'd like to help, but I can't see that the company sells DVD movies at all. I can't find that they have a search page either. I tried to the url you supplied, but it just isn't there for me. Regardless, I would be interested in how you go about parsing the return page when you get to that part. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 08, 2000 3:44 AM To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re:(2) Hi, uhm, I'll try to explain what I want to do. The site I'm looking at is a company that sell DVD movies. They have a function to search for movies. I want to be able to make that search, not by going to their homepage and typing in the form below, but just to enter an URL (or send an URL from a Rebol script actually), and then parse the returned page to get the info I want. The problem is that I don't know the syntax of the URL being sent (if it's possible to use an URL). IE. one of their links show something like: http://www.dvdshop.com/dvdsearch.asp?category=Horror if I press that link I get a list of all the horror movies. However, when it comes to the search form, I'm unable to figure out what the URL should look like. I've tried for example: http://www.dvdshop.com/dvdsearch.asp?title=Scream However, this isn't working, and I'd like to know what the info being sent to their script look like, so I can reproduce it in my Rebol script. As I see it, there's only thing I can do. Learn what all those ? = & etc. mean in a form posted URL and use trial and error... Or if I can capture the info sent from the form somehow to read and be able to reproduce it from a script. //Regards Stefan Falk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 7 juni 2000 20:03 To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re: Hey Stefan, I dont quite understand what your trying to do, but I will try to give you some information you may be able to use anyways. As you should already know HTTP servers take information from forms and pass it to a CGI program using POST or GET. The GET request can pass data via URL encoding such as "www.foobar.com/test.cgi?test=on". With POST, your data is sent additionally, not as part of a URL. This prevents your data from being viewed or entered as a URL, and as I understand was inpart the reason they came up with POST. Hope I helped, --Ryan [EMAIL PROTECTED] wrote: > Hi list, > this might not be Rebol related directly, but since I intend to use the info > for a rebol script I guess it's ok. Anyways, here we go. > > There's a page with a search form, and I'd like to know what the POSTed URL > look like. The source goes something like this: > > > > > > VALUE="actor" CHECKED> > > > VALUE="title"> > SRC="search.gif" BORDER=0 ALT="Search"> > > > Of course, I tried to (naive as I am), to post an url that has the form data > like this: http://blaaah.com/search.asp?title=blaaah > > but this isn't the right one. Is there any way I can instead of performing > the search just see the url? > > Any info appreciated > > //Regards Stefan
[REBOL] TextPad syntax for Rebol Re:(3)
Sorry, didn't see someone posted the answer. Great. >> Subject: [REBOL] TextPad syntax for Rebol >> For those that might be interested, I just whipped up a >> syntax definition file. Available at the following url: > Excellent !! Thanks. > Now how do I get rid of syntax highlighting in comments > and stuff between braces {} > :) >> in rebol: >> write/binary %rebol.syn read http://users.iitowns.com/deryk/rebol/rebol.syn >> in a normal browser: >> http://users.iitowns.com/deryk/rebol/rebol.syn > -- > [EMAIL PROTECTED] > http://perso.worldonline.fr/mutant -- [EMAIL PROTECTED] http://perso.worldonline.fr/mutant
[REBOL] TextPad syntax for Rebol Re:(2)
> Subject: [REBOL] TextPad syntax for Rebol > For those that might be interested, I just whipped up a > syntax definition file. Available at the following url: Excellent !! Thanks. Now how do I get rid of syntax highlighting in comments and stuff between braces {} :) > in rebol: > write/binary %rebol.syn read http://users.iitowns.com/deryk/rebol/rebol.syn > in a normal browser: > http://users.iitowns.com/deryk/rebol/rebol.syn -- [EMAIL PROTECTED] http://perso.worldonline.fr/mutant
[REBOL] http authorisation - how? Re:(2)
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 03, 2000 6:17 AM Subject: [REBOL] http authorisation - how? Re: > [EMAIL PROTECTED] wrote: > >What I want to do is download a html page that requires authorisation. > >I tried inserting the user name and password in the same fashion as > >email downloading: > > > >read http://user:[EMAIL PROTECTED] > > > >but it gives "...server response: .. 401 Unauthorized." > > There are two kinds of http authorization, basic and digest. Basic sends > a clear-text userid and password as part of the headers. Digest sends an > MD5 message digest of the password - it is newer and more secure. > > At this point, REBOL only supports basic authentication. Apparently the > server you're connecting to doesn't downgrade to basic authentication > for security reasons. > > You may be out of luck, Anton :( > > Brian Hawley > > Yes I've struck this today to, on a server that is supposed to be using Basic Authentication. Does anyone have confirmation that the Basic Authentication is working? Cheers, Allen K
[REBOL] rebol on userland ....
http://discuss.userland.com/msgReader$16342 ... finally someone told them ;-) -pekr-
[REBOL] Getting an URL from a form Re:(3)
Hi Stefan! I would rather use the rebol proxy server (proxy.r) from rebol.com library to capture all the outgoing data. It is a very useful script. Give it a try. Joshy - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 08 June, 2000 3:44 PM Subject: [REBOL] Getting an URL from a form Re:(2) > Hi, > uhm, I'll try to explain what I want to do. > > The site I'm looking at is a company that sell DVD movies. They have a > function to search for movies. I want to be able to make that search, not by > going to their homepage and typing in the form below, but just to enter an > URL (or send an URL from a Rebol script actually), and then parse the > returned page to get the info I want. The problem is that I don't know the > syntax of the URL being sent (if it's possible to use an URL). IE. one of > their links show something like: > > http://www.dvdshop.com/dvdsearch.asp?category=Horror > > if I press that link I get a list of all the horror movies. However, when it > comes to the search form, I'm unable to figure out what the URL should look > like. I've tried for example: > > http://www.dvdshop.com/dvdsearch.asp?title=Scream > > However, this isn't working, and I'd like to know what the info being sent > to their script look like, so I can reproduce it in my Rebol script. > > As I see it, there's only thing I can do. Learn what all those ? = & etc. > mean in a form posted URL and use trial and error... Or if I can capture the > info sent from the form somehow to read and be able to reproduce it from a > script. > > file://Regards Stefan Falk > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: den 7 juni 2000 20:03 > To: [EMAIL PROTECTED] > Subject: [REBOL] Getting an URL from a form Re: > > > Hey Stefan, > I dont quite understand what your trying to do, but I will try to give you > some > information you may be able to use anyways. > > As you should already know HTTP servers take information from forms and pass > it > to a CGI program using POST or GET. The GET request can pass data via URL > encoding such as "www.foobar.com/test.cgi?test=on". > > With POST, your data is sent additionally, not as part of a URL. This > prevents > your data from being viewed or entered as a URL, and as I understand was > inpart > the reason they came up with POST. > > Hope I helped, > --Ryan > > > [EMAIL PROTECTED] wrote: > > > Hi list, > > this might not be Rebol related directly, but since I intend to use the > info > > for a rebol script I guess it's ok. Anyways, here we go. > > > > There's a page with a search form, and I'd like to know what the POSTed > URL > > look like. The source goes something like this: > > > > > > > > > > > > > VALUE="actor" CHECKED> > > > > > > > VALUE="title"> > > > SRC="search.gif" BORDER=0 ALT="Search"> > > > > > > Of course, I tried to (naive as I am), to post an url that has the form > data > > like this: http://blaaah.com/search.asp?title=blaaah > > > > but this isn't the right one. Is there any way I can instead of performing > > the search just see the url? > > > > Any info appreciated > > > > file://Regards Stefan >
[REBOL] NT cgi query #163 Re:
I'm not sure if this is the same problem, but I saw a similar type of behavior when I used a WinNT cmd file to run rebol scripts which sent email. My problem was the result of how NT and rebol interacted to find user.r. I ended up writing a separate cmd file to set directories and then start the rebol script. I then called the new launcher cmd file from the original cmd file. Hope this helps. Matt [EMAIL PROTECTED] wrote: > Ok. new problem. > > Have core running on NT, user.r seems ok. > When i do a send [EMAIL PROTECTED] from the console it works > fine, but if i have a script called via cgi that has > send [EMAIL PROTECTED] in it... it doesn't work at all? > > go figure? > TBrownell > > __ > Do You Yahoo!? > Yahoo! Photos -- now, 100 FREE prints! > http://photos.yahoo.com
[REBOL] Getting an URL from a form Re:(2)
Hi, uhm, I'll try to explain what I want to do. The site I'm looking at is a company that sell DVD movies. They have a function to search for movies. I want to be able to make that search, not by going to their homepage and typing in the form below, but just to enter an URL (or send an URL from a Rebol script actually), and then parse the returned page to get the info I want. The problem is that I don't know the syntax of the URL being sent (if it's possible to use an URL). IE. one of their links show something like: http://www.dvdshop.com/dvdsearch.asp?category=Horror if I press that link I get a list of all the horror movies. However, when it comes to the search form, I'm unable to figure out what the URL should look like. I've tried for example: http://www.dvdshop.com/dvdsearch.asp?title=Scream However, this isn't working, and I'd like to know what the info being sent to their script look like, so I can reproduce it in my Rebol script. As I see it, there's only thing I can do. Learn what all those ? = & etc. mean in a form posted URL and use trial and error... Or if I can capture the info sent from the form somehow to read and be able to reproduce it from a script. //Regards Stefan Falk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 7 juni 2000 20:03 To: [EMAIL PROTECTED] Subject: [REBOL] Getting an URL from a form Re: Hey Stefan, I dont quite understand what your trying to do, but I will try to give you some information you may be able to use anyways. As you should already know HTTP servers take information from forms and pass it to a CGI program using POST or GET. The GET request can pass data via URL encoding such as "www.foobar.com/test.cgi?test=on". With POST, your data is sent additionally, not as part of a URL. This prevents your data from being viewed or entered as a URL, and as I understand was inpart the reason they came up with POST. Hope I helped, --Ryan [EMAIL PROTECTED] wrote: > Hi list, > this might not be Rebol related directly, but since I intend to use the info > for a rebol script I guess it's ok. Anyways, here we go. > > There's a page with a search form, and I'd like to know what the POSTed URL > look like. The source goes something like this: > > > > > > VALUE="actor" CHECKED> > > > VALUE="title"> > SRC="search.gif" BORDER=0 ALT="Search"> > > > Of course, I tried to (naive as I am), to post an url that has the form data > like this: http://blaaah.com/search.asp?title=blaaah > > but this isn't the right one. Is there any way I can instead of performing > the search just see the url? > > Any info appreciated > > //Regards Stefan
[REBOL] parsing by period and newline Re:(4)
> "Complexity is immediate, simplicity takes time" (quoted from a sign that Dan has on his wall at REBOL. One of the earliest and best articulations of the REBOL philosophy that struck me when I first got there..) I heartily agree! Andrew Martin Taking my time... ICQ: 26227169 http://members.xoom.com/AndrewMartin/ -><-