-5

I would like any BSD libraries I would prefer python but any language is great.

Ben Fossen
  • 997
  • 6
  • 22
  • 48

1 Answers1

-2

Good question guaranteed to depend on host config (could be custom or fake descriptions) while one mentioned way is use HTTP HEAD

#Call HTTP HEAD in Python
import httplib
conn=httplib.HTTPConnection("www.abc.com")
conn.request("HEAD", "/dir/file1.mp3")
res=conn.getresponse()
fileSize=res.getheader('content-length')
#or res.getheaders() for all headers
conn.close()
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424