OK, I'm a little bit closer to the problem now.

I tried to download the same URL using 'read, and rebol hung. Setting on
trace, I got an endless loop in parsing of the HTTP headers, so there
definitely is something spooky going on there. I put the lot (trace produces
kilometres of output) on this URL: http://www.babelserver.org/
strange.html

I believe this is a bug. I'd like to look closer into it myself, but since
'read is native, I cannot peek into it, can I? And from the 'port object,
(open/lines), I don't know how to get more information than what I have on
the above mentionned URL.

What should I do? Should I post it directly to Rambo?

HY

On 24/01/06, Hallvard Ystad <[EMAIL PROTECTED]> wrote:
>
> Thanks for the tip, but I now tried with different haeders (didn't even
> include the user-agent header on first attempts). I have experimented with
> both HTTP/1.1 and HTTP/1.0, kept-alive and closed connections, with and
> without specifying the host, with different user-agents and even from
> different IPs... And nothing seems to make any difference. I now get the 302
> error on all attempts.
>
> The rebol console looks like this:
> [We send:]
> GET /article.cgi?i=400&r=0 HTTP/1.1
> Host: www.linuxtelephony.org
> connection: close
> user-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
>
> HTTP/1.1 302 Moved Temporarily
> ** Script Error: Out of range or past end
> ** Near: not empty? reply: first port
> >>
>
>
> When I probe the port, I see this:
>     state: make object! [
>         flags: 791107
>         misc: [144 [] 0]
>         tail: 0
>         num: 1
>         with: "^M^/"
>         custom: none
>         index: 0
>         func: 3
>         fpos: 0
>         inBuffer: "^/"
>
> ... Could it be that the server says it's newlines are "^M^/", but the
> last newline it actually sends, is only "^/"?
>
> I put everything in a file: http://babelserver.org/   strange.txt
> if anyone would like to have a look.
>
> HY
>
>
>
>
> On 24/01/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:
> >
> >
> > Hallvard:
> >
> > > But the behaviour is consistent on my side: I get a 302 redirect to
> > some URL
> > >  with a session ID in it, which will (probably set a cookie and then)
> > >  redirect me back. This works with a browser, but not with rebol...
> >
> > Weird.....I got a 302 redirect one time I tried, but not any of the
> > other
> > times.
> >
> > It's possible the site is sniffing user agents, and redirecting ones it
> > doesn't like to a different (simpler?) version of the site.  So you
> > could try
> > playing round with:
> >
> > system/schemes/http/user-agent: "Mozilla/4.0 (compatible; MSIE 6.0;
> > Windows
> > NT 5.0)"
> >
> > see if different user agent strings make a difference.
> >
> > Another possibility to explain the randomness is that they are doing
> > some
> > sort of load balancing/redirecting based on IP address.  If so, you
> > could try
> > coming at them via an anonymizing website.
> >
> > Either way, good luck!
> > Sunanda.
> > --
> > To unsubscribe from the list, just send an email to
> > lists at rebol.com with unsubscribe as the subject.
> >
> >
>
>
> --
> Prætera censeo Carthaginem esse delendam
>



--
Prætera censeo Carthaginem esse delendam

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to