gdi / curb-fu

Simple, yet powerful wrapper for taf2's curb (libcurl) library
Other
57 stars 9 forks source link

Template is missing #13

Closed PatrykM closed 11 years ago

PatrykM commented 11 years ago

I try to use curb-fu to follow link after post

response = CurbFu.post({:url => 'https://secure.transferuj.pl', :protocol => "https"}, { :imie => 'pat', :nazwisko => 'mas', :id => '1010', :kwota => '1234', :opis => 'marnypopis' }) { |curb| curb.follow_location = true }

and i get Template is missing. Could you help me with this?

hypomodern commented 11 years ago

"Template is missing" sounds like a webserver error; you're being redirected to a URL that doesn't exist. It's definitely not an error coming from curb-fu :).

You could stop using follow_location and look at response.headers to see where you're being redirected to.