get_filename

sunpy.util.net.get_filename(sock, url)[source] [edit on github]

Get filename from given urllib2.urlopen object and URL. First, tries Content-Disposition, if unavailable, extracts name from URL.