[RESOLVED] saving torrent files from Isohunt

Ask for help about FlashGot, no registration needed to post
Post Reply
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3365
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: saving torrent files from Isohunt

Post by GµårÐïåñ »

Just tried it, no issue. 29.7 kb and downloaded fine and looks fine.
Could it be something with the way its passing this information on your system? Some configuration data might help.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: saving torrent files from Isohunt

Post by Giorgio Maone »

anonymous_user wrote:I just tried aria2 and it works too (although it also began downloading the torrent).
Maybe its the parameters used for cURL and wget?
Do they work with the same URL from the terminal?
My doubt is that the server blocks cURL's User Agent string...
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: saving torrent files from Isohunt

Post by Giorgio Maone »

anonymous_user wrote:I can test that, just tell me whats parameters to use. The man page is a bit lengthy.
curl <URL>
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: saving torrent files from Isohunt

Post by Giorgio Maone »

OK, I was right. They check the User-Agent header to prevent leeching from bots and other automated downloaders.
Just enter the following command line in a terminal (logged as the same user as the one you launch Firefox as), it should do the trick once for ever (for cURL):

Code: Select all

touch $HOME/.curlrc && echo >>$HOME/.curlrc 'user-agent = "Mozilla/5.0"'
Next FlashGot build will fake the user agent by default both for wget and cURL.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)
Post Reply