ruby on rails - HTTParty.head retrieves full response for MP3 -
i'm using httparty check health of mp3s, want make head request , see response code. when use httparty.head on mp3s i'm receiving full response.
e.g., response = httparty.head("https://archive.org/download/is-los-angeles-still-a-city-of-quartz.lyaaw6.popuparchive.org/ww_2015-06-18-202413.6929.mp3")
using curl works expected curl -il https://archive.org/download/is-los-angeles-still-a-city-of-quartz.lyaaw6.popuparchive.org/ww_2015-06-18-202413.6929.mp3
here's issue you're looking on github. 1 of answers work (seems problem redirects):
httparty.head("https://archive.org/download/is-los-angeles-still-a-city-of-quartz.lyaaw6.popuparchive.org/ww_2015-06-18-202413.6929.mp3", follow_redirects: true, maintain_method_across_redirects: true)
Comments
Post a Comment