You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by khiem nguyen <kh...@googlemail.com> on 2011/02/07 10:28:51 UTC

Streaming content & header-parsing

Hi,
i'm trying to use httpclient 4.1 to get some stream-content from this site
http://oe1.orf.at/konsole/?show=live

this doesnt work, log message:

DefaultResponseParser [DEBUG] Garbage in response:

from browser, debug with firebug i saw a GET request to

http://mp3stream3.apasf.apa.at:8000/;stream.mp3

reponse code is 200 but there's no other headers back from server, seems
like DefaultResponseParser tries to interprete mp3-content as header &
failed & throws everything away.

is it the correct behaviour & why firefox can handle it correctly ?

thanx

Re: Streaming content & header-parsing

Posted by khiem nguyen <kh...@googlemail.com>.
got it

thanx for your help

khiem

On Mon, Feb 7, 2011 at 2:43 PM, Oleg Kalnichevski <ol...@apache.org> wrote:

> On Mon, 2011-02-07 at 14:39 +0100, khiem nguyen wrote:
> > ok, i see
> >
> > so the server gives junk status-header back to the client.
> >
> > is there a way to overcome this ?, i mean how can i replace
> > the DefaultResponseParser without touching the client's code too much (
> just
> > like a responseInterceptor ???),  i guess there'll be many other websites
> > which doing things like this & i'll need to handle it any way.
> >
> > thanx alot for your help
> >
>
> You'll need a custom connection manager
>
>
> http://hc.apache.org/httpcomponents-client-ga/tutorial/html/advanced.html#d4e1333
>
> Oleg
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Re: Streaming content & header-parsing

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, 2011-02-07 at 14:39 +0100, khiem nguyen wrote:
> ok, i see
> 
> so the server gives junk status-header back to the client.
> 
> is there a way to overcome this ?, i mean how can i replace
> the DefaultResponseParser without touching the client's code too much ( just
> like a responseInterceptor ???),  i guess there'll be many other websites
> which doing things like this & i'll need to handle it any way.
> 
> thanx alot for your help
> 

You'll need a custom connection manager

http://hc.apache.org/httpcomponents-client-ga/tutorial/html/advanced.html#d4e1333

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Re: Streaming content & header-parsing

Posted by khiem nguyen <kh...@googlemail.com>.
ok, i see

so the server gives junk status-header back to the client.

is there a way to overcome this ?, i mean how can i replace
the DefaultResponseParser without touching the client's code too much ( just
like a responseInterceptor ???),  i guess there'll be many other websites
which doing things like this & i'll need to handle it any way.

thanx alot for your help

khiem



On Mon, Feb 7, 2011 at 2:28 PM, Oleg Kalnichevski <ol...@apache.org> wrote:

> On Mon, 2011-02-07 at 13:58 +0100, khiem nguyen wrote:
> > here's logging-console:
> >
>
> ...
>
> > DEBUG [org.apache.http.wire] << "ICY 200 OK[\r][\n]"
> > DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in
> response:
> > ICY 200 OK
>
> 'ICY 200 OK' is not a valid HTTP status line.
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Re: Streaming content & header-parsing

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, 2011-02-07 at 13:58 +0100, khiem nguyen wrote:
> here's logging-console:
> 

...

> DEBUG [org.apache.http.wire] << "ICY 200 OK[\r][\n]"
> DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
> ICY 200 OK

'ICY 200 OK' is not a valid HTTP status line.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Re: Streaming content & header-parsing

Posted by khiem nguyen <kh...@googlemail.com>.
here's logging-console:

DEBUG [org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager] Get
connection: HttpRoute[{}->http://mp3stream3.apasf.apa.at:8000], timeout =
30000
DEBUG [org.apache.http.impl.conn.tsccm.ConnPoolByRoute] [HttpRoute[{}->
http://mp3stream3.apasf.apa.at:8000]] total kept alive: 7, total issued: 0,
total allocated: 7 out of 1000
DEBUG [org.apache.http.impl.conn.tsccm.ConnPoolByRoute] No free connections
[HttpRoute[{}->http://mp3stream3.apasf.apa.at:8000]][null]
DEBUG [org.apache.http.impl.conn.tsccm.ConnPoolByRoute] Available capacity:
30 out of 30 [HttpRoute[{}->http://mp3stream3.apasf.apa.at:8000]][null]
DEBUG [org.apache.http.impl.conn.tsccm.ConnPoolByRoute] Creating new
connection [HttpRoute[{}->http://mp3stream3.apasf.apa.at:8000]]
DEBUG [org.apache.http.impl.conn.DefaultClientConnectionOperator] Connecting
to mp3stream3.apasf.apa.at/194.232.200.152:8000
DEBUG [org.apache.http.impl.client.DefaultHttpClient] Attempt 1 to execute
request
DEBUG [org.apache.http.impl.conn.DefaultClientConnection] Sending request:
GET /;stream.mp3 HTTP/1.1
DEBUG [org.apache.http.wire] >> "GET /;stream.mp3 HTTP/1.1[\r][\n]"
DEBUG [org.apache.http.wire] >> "Host: mp3stream3.apasf.apa.at:8000[\r][\n]"
DEBUG [org.apache.http.wire] >> "Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8[\r][\n]"
DEBUG [org.apache.http.wire] >> "User-Agent: [0x9]Mozilla/5.0 (X11; U; Linux
x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Fedora/3.6.12-1.fc13
Firefox/3.6.12[\r][\n]"
DEBUG [org.apache.http.wire] >> "[\r][\n]"
DEBUG [org.apache.http.headers] >> GET /;stream.mp3 HTTP/1.1
DEBUG [org.apache.http.headers] >> Host: mp3stream3.apasf.apa.at:8000
DEBUG [org.apache.http.headers] >> Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
DEBUG [org.apache.http.headers] >> User-Agent: Mozilla/5.0 (X11; U; Linux
x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Fedora/3.6.12-1.fc13
Firefox/3.6.12
DEBUG [org.apache.http.wire] << "ICY 200 OK[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
ICY 200 OK
DEBUG [org.apache.http.wire] << "icy-notice1:<BR>This stream requires <a
href="http://www.winamp.com/">Winamp</a><BR>[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/
">Winamp</a><BR>
DEBUG [org.apache.http.wire] << "icy-notice2:SHOUTcast Distributed Network
Audio Server/win32 v1.9.8<BR>[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
icy-notice2:SHOUTcast Distributed Network Audio Server/win32 v1.9.8<BR>
DEBUG [org.apache.http.wire] << "icy-name:OE 1[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
icy-name:OE 1
DEBUG [org.apache.http.wire] << "icy-genre:Classic[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
icy-genre:Classic
DEBUG [org.apache.http.wire] << "icy-url:http://oe1.orf.at[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
icy-url:http://oe1.orf.at
DEBUG [org.apache.http.wire] << "content-type:audio/mpeg[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
content-type:audio/mpeg
DEBUG [org.apache.http.wire] << "icy-pub:1[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
icy-pub:1
DEBUG [org.apache.http.wire] << "icy-br:120[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
icy-br:120
DEBUG [org.apache.http.wire] << "[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in
response:
DEBUG [org.apache.http.wire] <<
"A&?Lf^?(?[0x1f]a?[0x1f]??]6<u[0x9]j???g?????[0x1c]DU?o,??[0x1f]"?[0x10]~???D??????a??*P8?[0x8]5??A??!?(][0x5]T4??72]????[\r]=?[0xe][0x8]
l???[0x6]wx????+?[\r]W'U?????c?+???;o?h??[0x5]?[0x6]????[0x11]{Ur?qk?h??r6??J???[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
A&«Lf^¥(Ôa?êÄ]6<u
jùÀÇgÎ?¸?èDUÖo,ñí"Ö~´º?D´??´??aô¡*P8?5âÄAÛ?!Ê(]T4?©72]Æ·íÒ
=Ï l???wxñ?ÿ®+?
W'Uÿûâ??c¢+±??;o¡h´??ªË¬ñ{Ur?qkûh??r6Û?JÖ±?
DEBUG [org.apache.http.wire] << "?d????V[0x8]??? ???C?????|A???
[0xc]?[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
?dÇÖ?ÀVÏâê Ê?ºCÑíûùÛ|A¬?? ?
DEBUG [org.apache.http.wire] <<
";E?t????GM?[0x1d]+?$D[0x17][0x13]??`,S?!??T[0x5]7"+??j???G?\?[0x1c]M2?i??sv[0x16]?Yjg[0x4]n.?g?<[0x7]????r???5??R??+[v?5?4@?\@????????b?[)?Q?n?B9??S???^Dm6??????????A???????[0x1f]??????P[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0]???L4[0x16][0x0][0x0][0x2]?2Yi?*?^fK-=?[[0xb]h?_???a?[0x19]+???l???m?#m???h?????U??[0x2]???*????)D?W5???[0x1]???[0x4]??????>???@?e[\r]????0?q?2H?f.K{>??[0x12]?ib:[0x14]b.??{S???N??NF?{??X????????,C??)??j?b|???ukP`e?AD[0x1f]iMT?[0x11]?[0x7]??[0x10]?j
??CdO?????w?4?[0x13]!?????\[0x2]A[0x0]?K3?0hP?[0xf]5;???\EB?)6?j??[0x1a]:?AL??P,??[0xc][0x1]R?????G???Qd:[0x8]:?|?q???P[0x12]r[0x15]r????X???i$?O??&?t\<5?u.1b??c??[0x5]o?2[0xf]@?{[0x10][i[0x1a]??Jm$??^???`$????x??&s?t?[0x13]??8?Flg[0x11]6Z\s9b/0=C
??[?????e?>???z???nrX
[0x5][0x13]???[0xe]?,r?E??,8z??5?J^??E&?[??[0x10][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0]???L??[0x0][0x0][0x2]?2Xi?:?_f??>h[[0xb]$?c???av[0x19]+???lt??I$?J;???;S(f????[0x1f]?[0x14]?ZI?R?/???n?V?#Sn??xs?:?W?2/W9?????[0x1e]D?x???[0x13]?[0x9]??=[0x1a][0x7][0x17]??&??u[0xf]???[0x7]??}7*???E??R4iy?;???4D?[0x1]??F??[0x10]???-MY>?S?[0x10]M???4?hH[0x5][0x1e]??k3-?mT?X????Y[0x12]???????????,nTx_??[0x1]??r???>??|???R?%?????]?:?N[0x2][0x9]y??@M????)[0x2]xRe?A[0x1d]h?N????h/0P[0x5]UN??(??M&z??[0x18]s??????????[0x8]?(?.?5?,n?[0x10]?T(]?c??4Z*[0x12]?I??RP??1[0x9][0x18]
v?j[0x12]([0x6][0xf][0x2]i6A6H[0x10][0x2]?#i?[0x8]~?u[0x1f]?*p]{S?$[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
;Eët
üªÅGM¬+õ$DǨ`,S?!?¿T7"+î?jôاG¬\?M2?iÈãsv·Yjgn.¡gó<?Úè°rÁ?ª5¨?R?º+[v?5Ò4@
¸\@??Åê?£Ø§b?[)?QÇn®B9?§SÉ«µ^Dm6?Ú¿ÛÑÕ??ÛÊAº?Ó?÷??öâ?·ÛçPÿú?L4·2Yiñ*Ø^fK-=¥[h?_§Ì©a?+è÷¡lº´Êm·#m?ÔÙhë??Ì?UøÕàÖµ*???é)DÓW5ÍØ?Ó¨¡À??¨Ëè>??Ô@?e
?Òã?0?qÁ2H?f.K{>?¢¯ib:b.Ç?{S÷ÒãN?ÒNFÛ{©¥XëÎÊźµå?,C?µ)??jéb|??ÕukP`eàADiMT©Ñ??¢j
??CdO¸õ¨°©w¸4?!???÷?\AûK3Ü0hPª5;?«å\EB?)6?jõÎ:óAL?àP,
?R?????G?Î?Qd::?|ëqÒÃìPrr???æX???i$?Oµ?&àt\<5Íu.1b?ácϸoì2@æ{[i¥?Jm$Õê^ѵæ`$????x??&sát??ë8ÊFlg6Z\s9b/0=C
àÿ[õû?ÊùeÜ>??ªzºÿ?nrX
??ã?,rÀEúî,8z??5?J^?äE&Å[??ÿú?L÷?Ã2Xií:Ø_fÊú>h[$Éc§´ëav+ôÈ¡lt¢?I$ÚJ;Ú??;S(f¿ÍôË?ßZI?Rû/Í?©n¥V?#Sn?¬xs?:ÉWÑ2/W9Äåó?ÍDéxê©¢?
??=î?&??uâÏ
·Û}7*Ô??E©?R4iyÌ;àîÔ4D???F´????-MY>?SêM®ö?4?hH?¥k3-?mT»XÓ£·ÔY??¢??â¸???«,nTx_Ô÷Ë?r???>?û|îÔ?R?%´Ü?ª÷]¯:íN
yõ?@MÂÉì?)xReùAh?NÑ???h/0PUNèß(®ûM&z?ôsÎíµñê«??ø?ä(?.É5Ô,n¿ÂT(]?cò?4Z*?I´?RP??1

v?j(i6A6HÛ#iÒ~©u®*p]{S?$
DEBUG [org.apache.http.wire] <<
"??{7???1????D[0x9]???????+????GTk?[0x14]I1v\[0xf]?|??*????@[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0]???L|?[0x0][0x0][0x2]?*X??[0x12]?_[0x9]J?a?m[0xb][0x14]?c???a??k???l?'?m?#n?%?:)Bt[0x5]?T|?*[0x3]?(??[0x1]N4??!??R?6??k*?[0x14]
?M???[0x1f]?????[0x8]C[0x5]x?9????H?Pq?/?[0x18]??J??oH&???????[0x1a]M?-?[0x9]D??%??H2??????[0x1e]t[0x19]?%}??g?W???{?Y??Mf???xy??X.[0x6]???N??1^?V[0x6]z??[0x9][0xe]F7?[$?oS"}fstO??K??R?c[?*ml5C???[0x19]?j7#nM??????1t%??[0x2]q[0x17]B?????Y?G??[0x15]3??[0x1e]?Q???a??}r??o[0x16]=Y?f?=i?[0x14]?[0x1e]??wX?[0x17][0x19]??8[0x4]QJ$???h@qg
?????t?[%&?M^6[0x1e]?[\r][0x7]E??K:?[0x5]?x[0xb].`?[0x18]??[0x17]vY?[0x6]??RJ[0x17][0x19]???}??[0x4]c??[0xc]??j???u$|??[0x16]Z???J?fbd^?}c?[0x1c][0x1a]?5??[0xb]"1?I???[0x16]?z?xH[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0]???L??[0x0][0x0][0x2]?&Yy-*X^#?[0x1f]2II[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
Ì?{7ñ£ó1ȣˣD ?ÛÿªßÎÅ+??ü¡GTk?I1v\?|Í¡*?ïÔ?@ÿú?L|Ò?*Xé?Ø_
Jíaåm?c?´ëa??kô?©l?'?m·#nÍ%Á:)Bt©T|Â*ù(?ôN4?ó!Ú?R?6?ök*?
?Më?Á¥??ªÌCxô9??È?H¬Pqë/íÔ?J??oH&????Ö°?M?-?
D?Ò%©òH2ÍØô?çåtÜ%}ïªgèW·?ã{?Y¯ñMfÛø?xy?êX.ûÇ?NË?1^ÄVz¨£
F7?[$?oS"}fstOööK¸?R®c[Ò*ml5C?ê??j7#nMË?·??ê1t%°ÂqBÈ?õçÑY?GÖ?3ï?îQÂãêa??}r?ºo=Yâf?=i?õµ?wXûÒä8QJ$?ã¯h@qg
®¨?Ø?t?[%&ÒM^6ê
E¸?K:??x.`è??vYÂ??RJÜØ°}Üçcò??æjñ?Óu$|??Z?©?J?fbd^?}c??5?Ã"1¿Iã¢??z?xHÿú?LË°±&Yy-*X^#«2II
DEBUG [org.apache.http.wire] <<
"??a???ao?,t?!ld[0x13]h[0x12]2F?q??(q?<>[0x1a][0x15][0xf][0x19][0x17]??[0x8]???9[0xf]??[0x5]?5[0x1a]p?v??[0x18]?[0x4][0x16]1C?Vo???^&?[0xf][0xc]?J?[0x15]z+>?Y????*`?[0x16]??????Z?6m????A[0x19][0x8]??n6??T)F??7T?m??J[0x15]V?4[\r][0x3]?[0x13]7^??????<?q?=?S????[0x3]![0x12]?
3???4????+K?h{t?[0x2]?[0x2]H??[\r]E$???s?P[0x12]P????,??#)"ZM???c??_?[0x6]cc[0x1d]?????u[0x6]??;????4e???Or
8yf???3lg[J?Y???c??N=??[0x1d]?[0xf]!?JCO??X[0xc]?Cr??\+?[0x12]????????f?YI[0x7]??u[0x5]????z[0xf][0x6]?8??[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
?åa¥¬ëao?,tÉ!ldh2FäqÙô(qü<>±??ºì9îõÉ5p?v¨?¨1C?Vo???^&?»JÎz+>?Y¬Æ
Í*`Ò?îË¢å?Z¥6má?È?A??n6«òT)F?®7T?m»?JV?4
ô7^ÏѧÿÕ?<Ïq÷=õS£Ãø?!å 3?±4©àË?+K¥h{t?ÌHΧ
E$»?ès?PPæ©?Ø,°Ê#)"ZMÆÛ¯c??_?cc÷?ÆÛãu÷ò;Ö??Ö4e¶??Or
8yföü?3lg[J?Yì¿Íc??N=?«ê!äJCOæ¥X±CrÇ?\+ï?¸Óä¶??·f?YI?ãuÇ?¶ñz¥8?±
DEBUG [org.apache.http.wire] <<
"?]?[\r]???6?_r??}[0x0]?*-t??8???[0x1f][0x1c]?d??[0xf]?,?(??a?K[0x1a][0x18],?[?X??q???[[0x11][0x1a]z??B?[0x2]?[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0]???L??[0x0][0x0][0x2]?*X??R?`?[0x1b][\r]&?[[0xc][0x4]?a???a??,t??l???m?#nM??4??[0x16]J??e?*?S?[0xe][0x17]?~?X?7d??[0x13]*5(F?b?[0x8]?NB?F?]S?[0x14]??d[0x14][0x6]??EE?C8?&8*??[0x4]??[0x5]???w?A??X?@m??m&?MGxQ!~[0x1f][0x17]'[0x1a]?[0x17]>?[0x4][0x1d]???a!l[0x1b]U??H??T?CcQ?????[0x18]?:[0x13]6Y???w|w^@???_??j[0x1b]:w?[0x14]n?[0x9]B?[0x17]?Z?@[0x18][0x5]?,???aF??nQ?=K?%Ji7"n???;?#??n[0xb]{??[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
·]ò
?Éç6¯_r¯Ü}?*-t?ñ8Ûÿ¸?d¸¨?,?(?¢a·K,ô[íX¨ që? [zÒÃB?«ÿú?L???*XéíRØ`§
&?[©a§Ì«a??,t??l?´Ém·#nMÓ?4õÑJñ?eÔ*?SºÓ~©Xç7d?É*5(F?b¬ÈNB?F?]S¥æ«d??EE?C8¡&8*ßŬä?Òw?A?ÉX?@m?êm&ÛMGxQ!~'¨>ä?¨ùa!lU©§Hº?TòCcQ¨?é?¬?:6Y?®¨w|w^@?Æ»_´äj:w?n¡
B©¿ZÔ@?,°?¯aF?¥nQÄ=K?%Ji7"n?Õò;û#??n{¸é
DEBUG [org.apache.http.wire] <<
"???[0x19][0xb]?&?QL?[0x1f]d??"??P[0x6]f!?[0x1c][0xc][0x16][0x15]"??f??j[0xe]????M??[0xc]?j[0x14]??e[\r][0x17]6L?'2?>\4??3?X[0x10]???V?[0xb](?[0xc]6S?6???f??[0x17]???????g[0x1]?A?RA????[0x19]???If?[0x8]?dT[0x12]??
[0x2][0x7]???W?:?3??u??TY-?h???[0x14][0x2][0xe]O>[0x3]x}[0x2][0x1b][0x17]*=@???$
C?7[0xe][0x17]Yu??[0x16]9r[0x8][0x0]???Ll?[0x0][0x0][0x2]?*??p*?aF[0xb][\r]&H[[0xb][0x14]?_?5[0xb]a??,)????%[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
°ö¥?&ÑQL?d§Ô"Í?Pf!Ì"?ëf®ÏjÕ?¡îM·??j?Ée
6LÓ'2¸>\4Ô?3èX?Ë?V?(»6S?6Û?·fâºáö???ÎÜgìAêRA??È??±öIfÉ»dTȬ
Ô?öW?:£3Ù?uÔøTY-?háô?O>x}*=@úÎ?$ C¥7Yu??9rÿú?Ll?«*Øép*ØaF
&H[©_?5a??,)??´ª%
DEBUG [org.apache.http.wire] << "i'#n???g?a!?[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
i'#n???g?a!©
DEBUG [org.apache.http.wire] <<
"??,t[0x2]4?n????o??Gg?[0x1f]M[0x5][$?0?3????6wA???[0x1e][0x9];R[0x0]lKXE?Y??S?+N???[0x1c]<???6^R??[0x7]?M[0x2]?-$?MGxc??X[0x1e](9GPL[0x1a][0x0]+&?MI&[0x1d]??-R?[0x1c]??3\]?_[0x9]?[0x13]@Pm???*8?[0x1c]??[0x1d]L_?[0x1f]?[0x15]W?430~<????H?=?]?i[0x3][0x16][0x8][0x2]?[0x17]R[0x1a]=???b???)[0x18]KI6?Q?7?xS[0x19][0x3]V???Xb[0x1d]?Zh???"?u[0xe]?H?2??~=??[0x12]?u?u+<???????p,pS?*mO?m?i?O1?*R[0xc]???[0x1a]HS?*?(T???n?znF?w????[0x1d]??[0xc]?w??t?ao??????7????5?*?[0x12]}?b?s??Ua.[0x16]????Z?[0x6]?HxD??%????5?/??[0x15]?wei?????D[0x11]T?$)?U[0xc]Qh??y:[0xb]?[0x0][0x0][0x0][0x0][0x0][0x0][0x0]???L??[0x0][0x0][0x2]?*W??:?b?;[\r]>?m[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
?µ,t4Ñn??Ã?o?ÌGgµM[$?0ñ3?Ô§?6wAê·?
;RlKXE£Y¬?Së+N?áÖ<Ú??6^R?µòMá-$ÛMGxc?çX(9GPL+&?MI&Òº-RÑË©3\]Ô_
ñ@PmìÚ®*8ïñ¿L_?¢Wß430~<°é¢ÜHñ=§]¡i¯R=??çbÜø?)KI6ÒQÉ7?xSV»??XbªZh?áÂ"ºu?Hª2ß?~=Ê??uÅu+<ÍÄÏ÷¬ÌÅp,pS©*mO?mÓi·O1à*R??§HS?*?(T¥?ún?znFÔwçîÉû??ºw»±tªao??ô?Åñ7?ïÚ?5Ì*ã}?búsßËUa.æ?¬¥Z?»HxDêæ%?Ü??5É/£?Ùwei©¬?ÒåDT?$)ÒUQhÍ?y:?ÿú?L??Ì*Wé?:ØbÉ;
>?m
DEBUG [org.apache.http.wire] <<
"??_?,?a?[0x19]l4?!li??H??I?&?????d??[0xc]?[0x17]????M[0x0]0?N?[0x18]?F?1w??????[0xf]?
?M?V??0q??"41mB?[0x15]?[0x2]-??[0x12]?$???c_??I%?Ga?[0xe][0x18]>?h??r([0x16]Jm???a??[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
è«_¥,Ëa?l4ù!li§?H?ÚI©&??˪?d????¶ô?M0?NªîF·1w?Ì??Ù?Å
éM?VÌ?0qè?"41mB??-?Ë?$??¨c_?÷I%¬GaÊ>¶h¢¥r(Jm???a?§
DEBUG [org.apache.http.wire] << "?P([0x14]?????E[0xc]?I[0x13]3[0x1]|??
????2t4]"??'[0x11]Q??(fZ????Y[0x10]??[0x19]Z?deOD%uU?J?????????c??f[0x2]?[?[0xc]?[0x10]06S[0x18]???[0x4][0x10]RE6?jD??vN[0x6]?????b?l2:"?s[0x14]???{???
[0x19]([0x0]?.c?-?????Y??6[0x16]?8[0x1][0x0]??X????/m??"[0x1]???*???R??mM??uR0[0x16]?M??????px??X??-BF[0x2]?f??e?@?[\r][0x6]??5?c?,|???[0x1f]X?,y?[0x15]?z?[0x15]*?X????b>?Qg?o?=[\r]?,\????U?????[0x0]??[0x12][0x1f][0x10]???:<?[0x1f]??&?p[0x0]???L??[0x0][0x0][0x2]?2??-:?b??[0x1d]=?m[0xb]?=c?4M?g[0x19]???!l??AH??E)??M?x?
.d?M+[0x1a]P?x<[0x14][B?<???%????[0xf]>
wK???K?'??{?!?[0xc]?Z?G??V[0x1f]?F??b[0xe]?J?[0x3]????\X?[0x17][0x14]Q??k[j?^)BQ)??nu??]???n?r|[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
ÓP(??Ö?àE·I3|®Í
Ë¢??2t4]"??'QòÂ(fZÈÈ?ÂYò?Z¡deOD%uU¡J?Õ?¶?È?ÿÿc¸¥fê[µ¸06SëÅäRE6?jDâ¢vNåºÈ¡?bºl2:"ßs?÷?{?Ëî
(?.cæ-?ó·Í´Y¿?6é8??X?í??/m?å"?æ?*?ÄáR«?mM??uR0?M???Úæ?px?üX?
-BF?f?¢eÓ@ò
?ä5êc?,|ü??X?,y?Øz§*?XÚã??b>åQg?oé=
?,\Â?ΰUÆ??Ò?Ô??û?:<ªÔÔ&?pÿú?L??Ú2?é-:Øb?û=¥m?=c?4M¡g¬?Õ!l??AH??E)ħM?xø
.dªM+PÑx<[B¡<?Ö»%û??å>
wKÑ´åK?'?ê{»!ÃæZ«G¢?V?F?ªbéJ???áá\X¡Q??k[jå^)BQ)Æ?nu?÷]ª£?n?r|
DEBUG [org.apache.http.wire] <<
"h*[0xf]z????????h??W?????[0x11]L?&??/Fd?F??$??u?P[0x11]????hQu4?Q[0x15]?????#????![0x10]NQe|X[0x0]D?K???????%$?m???!??YP[0x16]@qd[0x13]#Xkz?$P{?[0x3],??[\r]G???[0x12]Kq??I,>wb???q[0x4][0x19]H??????q?[0x5]r????2^?J?M??[0xc][\r]Z?M[0x1b]<?#[0x11]e?9?H2"[0x1]2$?m7#?}(?~P[0x1f]????-;??(?
[0xb]??5?[0x19]M?f$G???[0x7]???????^??4?Rb(?????????.???!el?Q??[0x4]B????[0x4][0x14]E???[0x0][0x0][0x0][0x0][0x0][0x0][0x0]???Ld?[0x0][0x0][0x2]?OY??[0x13]ha)?==Em[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
h*zËÂ?ª????h¨ÅW?????L?&Ç?/Fd£F?º$?çu?P??ª¢hQu4?QÛÖÈ??#û??ä!NQe|XDÁK?诫¢î?%$?m?æ?!
ñYP@qd#Xkz?$P{æ,¡º
G¯?éKq?ÊI,>wb?ÖäqH?°µÚêÌqòrÒ»èÛ2^?JèMéÙ
Z?M<?#eÔ9ÊH2"2$ãm7#È}(¨~P???á-;¸¨(ë
ñÅ5ÉM?f$G??¥À?ºëÏ÷º^æ?4ÑRb(µúù?±ó¢??.ñÍ?!elêQÂúBíáëÔEûѨÿú?Ld°?OYùçha)Û==Em
DEBUG [org.apache.http.wire] <<
"?'e??M?n$???[0x9]?i?#[0x11]2&?q?z?r???V.?????[0x4]o????B??Oi??K??hPB??M^?M?b[0x1d]PZ?!????[0x4]???????[0x1d]??????Z}??[0x10]???[0x6][0x10]x<-???[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
©'eå¨M¡n$ì´Å
´i?#2&äqÉz?r?ª?V.ùûÇçÈoÀ?ºµBç?Oi??KÜÂhPBÎ?M^?MíbPZ?!Ó¬¡çó?ÉÙæ§??û?÷Ó?Z}?æë?Áx<-µÂ?
DEBUG [org.apache.http.wire] <<
"+<o[0x12]?rG[0x1c]??`?2??_?p?M??/z??uj?2uw#1[0x1d]:"?????K[0x1d][0x16]?[0x14]?z?*eh?[0xe]?w,?j?Bjq[0x7]U9????[0x19]5????m9??[%[0x1c]P??
@?[0x11][0x1b]???n?hB5[0x1]34?m?q????[0xc]$!???E[0x1][0x1d]?N'}?8:?3m9??Bc[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
+<oÒrG?ª`¥2º¸_ªpÅMôÈ/zÁ?uj?2uw#1:"??ó??K?Ôz¥*eh©¨w,éjÅBjqU9??Ç?5è?Ì?m9?ç[%Pö?
@±Ù¢Ûn?hB534äm·qÕ???$!ä¥?EøN'}ê8:Õ3m9??Bc
DEBUG [org.apache.http.wire] <<
"[0x11]?Q9?-??b?k??D?????U5[0xb]?Gtm??_O??h??{&???*#??zEf?BZI??n?:??
>[0x0]%????j[0xb]??``O??AI?$???=$???[0x18][0x12]?&'[0x15]C+?Z1V??`?D???n?[0x4]?W??;l??????c?8????R[0x10]?Pm[0x15]s\T[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0]???L}{[0x0][0x0][0x2]?*X??B?_E?/=h[[\r][\n]"
DEBUG [org.apache.http.impl.conn.DefaultResponseParser] Garbage in response:
?Q9?-?´bÍk?ÄD·?º??U5ÈGtm?æ_Oï?h?Î{&ߨÖ*#ÕÑzEfÉBZIÈÚnÉ:?´ >%»§·Èj








On Mon, Feb 7, 2011 at 12:02 PM, Oleg Kalnichevski <ol...@apache.org> wrote:

> On Mon, 2011-02-07 at 10:28 +0100, khiem nguyen wrote:
> > Hi,
> > i'm trying to use httpclient 4.1 to get some stream-content from this
> site
> > http://oe1.orf.at/konsole/?show=live
> >
> > this doesnt work, log message:
> >
> > DefaultResponseParser [DEBUG] Garbage in response:
> >
> > from browser, debug with firebug i saw a GET request to
> >
> > http://mp3stream3.apasf.apa.at:8000/;stream.mp3
> >
> > reponse code is 200 but there's no other headers back from server, seems
> > like DefaultResponseParser tries to interprete mp3-content as header &
> > failed & throws everything away.
> >
> > is it the correct behaviour & why firefox can handle it correctly ?
> >
> > thanx
>
> I am pretty sure DefaultResponseParser can handle HTTP response messages
> with no headers just fine.
>
> Please post a wire log of the HTTP session, if you are reasonably sure
> HttpClient incorrectly handles valid HTTP responses.
>
> http://hc.apache.org/httpcomponents-client-ga/logging.html
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Re: Streaming content & header-parsing

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, 2011-02-07 at 10:28 +0100, khiem nguyen wrote:
> Hi,
> i'm trying to use httpclient 4.1 to get some stream-content from this site
> http://oe1.orf.at/konsole/?show=live
> 
> this doesnt work, log message:
> 
> DefaultResponseParser [DEBUG] Garbage in response:
> 
> from browser, debug with firebug i saw a GET request to
> 
> http://mp3stream3.apasf.apa.at:8000/;stream.mp3
> 
> reponse code is 200 but there's no other headers back from server, seems
> like DefaultResponseParser tries to interprete mp3-content as header &
> failed & throws everything away.
> 
> is it the correct behaviour & why firefox can handle it correctly ?
> 
> thanx

I am pretty sure DefaultResponseParser can handle HTTP response messages
with no headers just fine. 

Please post a wire log of the HTTP session, if you are reasonably sure
HttpClient incorrectly handles valid HTTP responses.

http://hc.apache.org/httpcomponents-client-ga/logging.html

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org