Hi, I put debug option in my aplication, and I got the
results for http://64.236.34.67:80/stream/1005. 
It seens that the server sometimes sends the headers, 
sometimes no! Is it a problem on Neon Library?

==> neonhttpsrc
location=http://64.236.34.67:80/stream/1005
iradio-mode=true ! fakesink

Fails (75% of times):

HTTP session to http://64.236.34.67:80 begins.
Doing DNS lookup on recprx.indt.org.br...
Running pre_send hooks
Sending request headers:
GET http://64.236.34.67/stream/1005 HTTP/1.1
Host: 64.236.34.67
Connection: TE
TE: trailers
User-Agent: neonhttpsrc
Icy-MetaData: 1

Sending request-line and headers:
Connecting to 10.241.32.10
Request sent; retry is 0.
[status-line] < HTTP/1.1 302 Found
[hdr] Date: Tue, 25 Jul 2006 16:58:21 GMT
Header Name: [date], Value: [Tue, 25 Jul 2006 16:58:21
GMT]
[hdr] Connection: close
Header Name: [connection], Value: [close]
[hdr] Location: 64.236.34.4:80/stream/1005
Header Name: [location], Value:
[64.236.34.4:80/stream/1005]
[hdr] Via: 1.0 recprx (NetCache NetApp/5.6.2R1)
Header Name: [via], Value: [1.0 recprx (NetCache
NetApp/5.6.2R1)]
[hdr]
End of headers.
Pipeline is PREROLLING ...
Reading 4096 bytes of response body.
Got EOF.
Running post_send hooks
Running destroy hooks.
Request ends.
ne_session_destroy called.


Runs fine (25% of times)

HTTP session to http://64.236.34.67:80 begins.
Doing DNS lookup on recprx.indt.org.br...
Running pre_send hooks
Sending request headers:
GET http://64.236.34.67/stream/1005 HTTP/1.1
Host: 64.236.34.67
Connection: TE
TE: trailers
User-Agent: neonhttpsrc
Icy-MetaData: 1

Sending request-line and headers:
Connecting to 10.241.32.10
Request sent; retry is 0.
[status-line] < ICY 200 OK
[status-line] ICY protocol; code 200
[hdr] icy-notice1: <BR>This stream requires <a
href="http://www.winamp.com/";>Winamp</a><BR>
Header Name: [icy-notice1], Value: [<BR>This stream
requires <a
href="http://www.winamp.com/";>Winamp</a><BR>]
[hdr] icy-notice2: SHOUTcast Distributed Network Audio
Server/SolarisSparc v1.9.5<BR>
Header Name: [icy-notice2], Value: [SHOUTcast
Distributed Network Audio Server/SolarisSparc
v1.9.5<BR>]
[hdr] icy-name: SMOOTHJAZZ.COM - The Global Home for
the Smoothest Jazz 24/7 - Live from Monterey Bay
Header Name: [icy-name], Value: [SMOOTHJAZZ.COM - The
Global Home for the Smoothest Jazz 24/7 - Live from
Monterey Bay]
[hdr] icy-genre: SMOOTH JAZZ
Header Name: [icy-genre], Value: [SMOOTH JAZZ]
[hdr] icy-url: http://www.smoothjazz.com
Header Name: [icy-url], Value:
[http://www.smoothjazz.com]
[hdr] icy-pub: 1
Header Name: [icy-pub], Value: [1]
[hdr] icy-metaint: 8192
Header Name: [icy-metaint], Value: [8192]
[hdr] icy-br: 128
Header Name: [icy-br], Value: [128]
[hdr] icy-irc: #shoutcast
Header Name: [icy-irc], Value: [#shoutcast]
[hdr] icy-icq: 0
Header Name: [icy-icq], Value: [0]
[hdr] icy-aim: N/A
Header Name: [icy-aim], Value: [N/A]
[hdr]
End of headers.


--- Joe Orton <[EMAIL PROTECTED]> escreveu:

> On Mon, Jul 24, 2006 at 11:04:33AM -0300, Flavio
> Oliveira wrote:
> > Does ne_begin_request() ensure that all headers
> have been received? Is 
> > there anyway to ensure that? One option is
> naturally to poll the 
> > headers for some time. Is there some example using
> ne_begin_request()? 
> > I tried ne_request_dispatch(), but it didn't work
> properly! I am using 
> > Neon 0.25
> 
> Yes, ne_begin_request() will send the request and
> read all the response 
> headers, but not read any of the response body.
> 
> joe
> 



                
_______________________________________________________ 
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. 
Registre seu aparelho agora! 
http://br.mobile.yahoo.com/mailalertas/ 
 

_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to