[REBOL] Re: Help with HTTP protocol

2004-03-07 Thread Anton Rolls
Actually, rebol can handle cookies, it's just not built in. Go to http://www.rebol.org and search for "cookie", you will find Several examples. Anton. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of > [EMAIL PROTECTED] > just looking at it quickly I th

[REBOL] Re: Help with HTTP protocol

2004-03-05 Thread bry
> Hey ! That's "human readable" METAR data ! > Once upon a time, I made a little REBOL app to parse METAR and TAF data > and transform them into readable text. > It's still available at : (if the free.fr web servers can be accessed ;o) > http://brunobord.free.fr/ressources/fairebo.z ip > User

[REBOL] Re: Help with HTTP protocol

2004-03-05 Thread Carlos Lorenz
Hi Will, This is it! You have helped me understand the problem. Actually they are redirecting me to the following URL http://br.w3.weather.com/weather/tendayBRXX0199 whenever I try to reach http://br.weather.com/weather/tendayBRXX0199 as I used to do before I have not noticed that REBOL was no

[REBOL] Re: Help with HTTP protocol

2004-03-05 Thread Bruno Bord
[EMAIL PROTECTED] wrote: >I think if what you want is to screen-scrape >weather info you would probably do better by >going to NOAA, for example >http://weather.noaa.gov/weather/current/SBCF. >html >for belo horizonte. > > > Hey ! That's "human readable" METAR data ! Once upon a time, I mad

[REBOL] Re: Help with HTTP protocol

2004-03-05 Thread Will Arp
Hi Carlos, this one works here (Rio Branco): print read http://www.w3.weather.com/outlook/travel/local/BRXX0199 Will;) -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] Re: Help with HTTP protocol

2004-03-05 Thread Carlos Lorenz
Thanks for your help Carlos Em Sexta 05 Março 2004 15:35, you wrote: > I think if what you want is to screen-scrape > weather info you would probably do better by > going to NOAA, for example > http://weather.noaa.gov/weather/current/SBCF. > html > for belo horizonte. > > from looking at the site

[REBOL] Re: Help with HTTP protocol

2004-03-05 Thread bry
I think if what you want is to screen-scrape weather info you would probably do better by going to NOAA, for example http://weather.noaa.gov/weather/current/SBCF. html for belo horizonte. from looking at the site you were scraping before I think they buy their data from some place like this:

[REBOL] Re: Help with HTTP protocol

2004-03-05 Thread bry
just looking at it quickly I think the redirection you're going through is because the page is trying to set a cookie. I don't know if anyone has done anything to get rebol to read and accept cookies, probably not, If I remember correctly cURL does this, and someone suggested you try cURl rec

[REBOL] Re: Help with HTTP protocol

2004-03-05 Thread Carlos Lorenz
Hi Joel, > > What does it do? At first glance (using NS7.1) that the > returned page is making heavy use of JavaScript to manage > content. If that's correct (whether through stupidity or My REBOL script shoul be able to read the entire page and parse it so I have temperatures by day into a b

[REBOL] Re: Help with HTTP protocol

2004-03-05 Thread Carlos Lorenz
Hi Sunanda, Thanks for you help but it does not work for me. Is there anything else that could be done in order to let the host "think" I am using a browser and not REBOL? The thing is that with a browser I can read the URL with no problem at all. It's the first time that REBOL cannot read an

[REBOL] Re: Help with HTTP protocol

2004-03-04 Thread SunandaDH
Carlos: > Now It seems my script is beeing redirected to another page by the guys at > Weather.Com. > > My question is: is there a way to ask REBOL to present himself as a > webbrowser > to a certain host? I ask you this because the url above > (http://br.weather.com/weather/tenday/BRXX

[REBOL] Re: Help with HTTP protocol

2004-03-04 Thread Greg Brondo
Now this is getting weird as I implemented my first agent for this in PHP as well (queue Twilight Zone music here) Curl is a command line tool and library for getting data from network systems (HTTP, TELNET, FTP, GOPHER, etc). http://curl.haxx.se/ it's quite handy to have for quick scrip

[REBOL] Re: Help with HTTP protocol

2004-03-04 Thread Joel Neely
Hi, Carlos, Carlos Lorenz wrote: > > "read http://br.weather.com/weather/tenday/BRXX2888 " does not work anymore > as expected. > What does it do? At first glance (using NS7.1) that the returned page is making heavy use of JavaScript to manage content. If that's correct (whether through s

[REBOL] Re: Help with HTTP protocol

2004-03-04 Thread Carlos Lorenz
Hi Greg I would appreciate to study your code if you don't mind I have one to scan Yahoo Weather - not completed tested, but written in PHP if you want I may send you Sorry for my ignorance but what's curl anyway? CArlos Em Quinta 04 Março 2004 14:10, you wrote: > I'm doing the same thing bu

[REBOL] Re: Help with HTTP protocol

2004-03-04 Thread Greg Brondo
I'm doing the same thing but getting my info from weather.yahoo.com. I can send you the code if you like. Also, if you want to use your code grab curl and run it like this: curl -D head http://br.weather.com/weather/tenday/BRXX2888 You can then view the 'head' file to see what is in the htt