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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -