Micha <[EMAIL PROTECTED]> writes:

> I'm wondering how wwwoffle deals with streaming media, say, mp3 audio 
> streams. 
> I like to know how to do streaming 'right', from a site admins point of view, 
> that is, to 
> make it more difficult to download streams locally. And there's also the 
> aspect of avoiding 
> to pile up too much crap in the cache. 

WWWOFFLE will cache all of the requests that are made to it if they
are for normal HTTP requests (GET/PUT/POST, not others) If the
streaming mechanism does not use HTTP or is not configured to use the
WWWOFFLE proxy then it will not be cached.


> That said.
> 
> I stumbled over the incredible 'Mad Max and the Wild Ones',
> <http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendID=97871906>
> and then wondered why the mp3 would not appear in the lasttime index ?
> ok, i know, that would be too easy. But how does it work ?
> 
> 
> [Additional information]
> 
> The request is apparently sent by the flash player. 
> Does that mean it circumvents the browser completely ?

It means that the flash player must be configured not to use a proxy.
I don't know how requests are made by flash applets.  Obviously the
applet itself is requested by the browser over HTTP but the applet
when it is running could use other mechanisms.

You could use netstat to find out what host and port the applet is
connected to when the data is streaming.  If the applet is using an
HTTP type protocol then you could set up an iptables rule (assuming
Linux) so that all traffic to that server is redirected to WWWOFFLE.
This would mean that all traffic would go via WWWOFFLE even if the
applet does not know anything about proxies.

> The http header exchange was,
> 
> http://cache06-music01.myspacecdn.com/45/std_67306a9a95bc3960cc70f79c2c9bece2.mp3?bandid=97871906&songid=25831990&token=1169628826_fc25e088f25bf08cdb8d3607f3736cd8&p=aHR0cDovL2NhY2hlMDYtbXVzaWMwMS5teXNwYWNlY2RuLmNvbS80NS9zdGRfNjczMDZhOWE5NWJjMzk2MGNjNzBmNzljMmM5YmVjZTIubXAz&a=0
> 
> GET 
> /45/std_67306a9a95bc3960cc70f79c2c9bece2.mp3?bandid=97871906&songid=25831990&token=1169628826_fc25e088f25bf08cdb8d3607f3736cd8&p=aHR0cDovL2NhY2hlMDYtbXVzaWMwMS5teXNwYWNlY2RuLmNvbS80NS9zdGRfNjczMDZhOWE5NWJjMzk2MGNjNzBmNzljMmM5YmVjZTIubXAz&a=0
>  HTTP/1.1
> Host: cache06-music01.myspacecdn.com
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) 
> Gecko/20061205 Iceweasel/2.0.0.1 (Debian-2.0.0.1+dfsg-2)
> Accept: 
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Proxy-Connection: keep-alive
> 
> HTTP/1.x 200 OK
> Content-Type: audio/mpeg
> Etag: "8709648033400179290"
> Accept-Ranges: bytes
> Last-Modified: Tue, 31 Oct 2006 16:04:07 GMT
> Date: Wed, 24 Jan 2007 16:52:46 GMT
> Server: lighttpd/1.4.11
> Connection: close
> Proxy-Connection: close
> Content-Encoding: gzip
> Transfer-Encoding: chunked

This looks like the music (audio/mpeg MIME type).  Was this a cached
file from WWWOFFLE?  Did you try playing the contents of the cached
URL?

> I can find respective D files in lasttime, like (not the same song though):
> 
> Dr87GDfD7NO6dFhdbUqUKYw:
> imagename="http://myspace-655.vo.llnwd.net/01169/55/60/1169010655_m.jpg"; 
> imagedesc="&lt;br&gt;" 
> filename="BLSfva8m9PkcA08zlvl9SZw0Tu51JbIaUKjBXxnmNbinJf0E8qzyd4hxxeQX4KUFhoLDFK/L2rTYq68jaZw3sMPgGuHS7aWQZkvStXJgvWI="
>  
> url="http://mediaservices.myspace.com/Services/Media/mediaHitCounter.ashx?i=MIGdBgorBgEEAYI3WAPOoIGOMIGLBgorBgEEAYI3WAMBoH0wewIDAgABAgJmAwICAMAECLOOOFDCFeW0BBAZ38iWhCWadApU5rIvMEr1BFCUS0Kibdc%2fTe%2fQzFdib2RSybRQPieD50Jij6QmqoOamhjMQRZYW3VQTj28QTgqIMV1PoMzCXIbVkpjWrZWyGYDJcGp7sIESWSSg0ZHptaEPg%3d%3d";
>  lyrics="" purl="" 
> durl="http://cache06-music01.myspacecdn.com/47/std_4291f08055c59ffa60f3a960f90905e7.mp3";
>  
> token="Czan+ZhrpscaWzuzIUKXufTH/Jmq8+kXHR9LV8v+/JjD5bWeHuZJ/8sP7cHSfVD7JNUU7AF8lEEfUdTIK+Y2lYW6CgpyX++yQwPA6uHwlvs="/><song
>  bsid="25832413" title="Blue Moon of Kentucky" songid="0" plays="789" 
> comments="" rate="" downloadable=""

I don't understand what this file is, is it part of the contents of
the WWWOFFLE cache?

-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             [EMAIL PROTECTED]
                                      http://www.gedanken.demon.co.uk/

WWWOFFLE users page:
        http://www.gedanken.demon.co.uk/wwwoffle/version-2.9/user.html

Reply via email to