"Failed writing body" with cUrl

Ask for help about FlashGot, no registration needed to post
Post Reply
Pronets
Junior Member
Posts: 24
Joined: Sun Feb 21, 2010 10:42 am

"Failed writing body" with cUrl

Post by Pronets »

When i download i video from YouTube with cUrl in Win32 i receive a "Failed writing body" a cause of strange filename.
Do it have a solution?
Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.9.2.2) Gecko/20100316 Firefox/3.0.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: "Failed writing body" with cUrl

Post by Giorgio Maone »

Could you give me a link?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
Pronets
Junior Member
Posts: 24
Joined: Sun Feb 21, 2010 10:42 am

Re: "Failed writing body" with cUrl

Post by Pronets »

Giorgio Maone wrote:Could you give me a link?
f.e.:
http://www.youtube.com/watch?v=akHfueLn ... r_embedded

Do it is possibile to add a "Placeholders" with the name file that i see in status bar?

Do it is possibile to choice the download manager in the name file of status bar?
Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.9.2.2) Gecko/20100316 Firefox/3.0.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: "Failed writing body" with cUrl

Post by Giorgio Maone »

Pronets wrote:
Giorgio Maone wrote:Could you give me a link?
f.e.:
http://www.youtube.com/watch?v=akHfueLn ... r_embedded
If I use FlashGot Media on that link with the "Built-in" download manager FlashGot "extrapolates" a good filename, "Amazing_Goalkeeper_Goal_Video.flv".
Pronets wrote: Do it is possibile to add a "Placeholders" with the name file that i see in status bar?
Actually there is a [FNAME] placeholder which translates to the "extrapolated" file name, even though it's not shown in the placeholders list (I'm fixing this in next release).
Using it ([-o FNAME]), you can build a cURL template which saves the video with the good file name, like explained here: http://flashgot.net/features#custom_curl
Pronets wrote:Do it is possibile to choice the download manager in the name file of status bar?
Not sure about what you mean here...
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
Pronets
Junior Member
Posts: 24
Joined: Sun Feb 21, 2010 10:42 am

Re: "Failed writing body" with cUrl

Post by Pronets »

Giorgio Maone wrote:
Pronets wrote:Do it is possibile to choice the download manager in the name file of status bar?
Not sure about what you mean here...
I wanted to mean what you said thanks
Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.9.2.2) Gecko/20100316 Firefox/3.0.3
Pronets
Junior Member
Posts: 24
Joined: Sun Feb 21, 2010 10:42 am

Re: "Failed writing body" with cUrl

Post by Pronets »

[-o FNAME] now work with youtube but download not work more with other normal file.
Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.9.2.2) Gecko/20100316 Firefox/3.0.3
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: "Failed writing body" with cUrl

Post by therube »

Actually there is a [FNAME] placeholder which translates to the "extrapolated" file name, even though it's not shown in the placeholders list (I'm fixing this in next release).
:-)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10pre) Gecko/20100327 SeaMonkey/2.0.5pre
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: "Failed writing body" with cUrl

Post by Giorgio Maone »

Pronets wrote:[-o FNAME] now work with youtube but download not work more with other normal file.
What do you mean? It's working fine for me with any file. Could you show me one which fails for you?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
Pronets
Junior Member
Posts: 24
Joined: Sun Feb 21, 2010 10:42 am

Re: "Failed writing body" with cUrl

Post by Pronets »

Giorgio Maone wrote:
Pronets wrote:[-o FNAME] now work with youtube but download not work more with other normal file.
What do you mean? It's working fine for me with any file. Could you show me one which fails for you?
f.e.:
i use:
C:\WINDOWS\system32\cmd.exe
/c start /B [/D FOLDER] c:\Programmi\Curl\curl [-o FNAME] i download from [url]http://www.foobar ... /foo_jesus
it not work.
if i instead use:
/c start /B [/D FOLDER] c:\Programmi\Curl\curl -o ciao [URL]
it work.
Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.9.2.2) Gecko/20100316 Firefox/3.0.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: "Failed writing body" with cUrl

Post by Giorgio Maone »

It's saving a "foo_jesus" 4KB file for me with thjis template:
C:\WINDOWS\system32\cmd.exe
/C start [/D FOLDER] curl -L -O [-o FNAME] [--referer REFERER] [-b COOKIE] [-d POST] [URL]
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
Pronets
Junior Member
Posts: 24
Joined: Sun Feb 21, 2010 10:42 am

Re: "Failed writing body" with cUrl

Post by Pronets »

But now is not working in YouTube, f.e.:
http://www.youtube.com/watch?v=x89xAXHd ... r_embedded
Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.9.2.2) Gecko/20100316 Firefox/3.0.3
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: "Failed writing body" with cUrl

Post by therube »

Nice clip ;-).

If you select (Browser Built In) does it download for you?

It could be the cUrl does not work with a direct Youtube link?

(Net Transport does not - now? <I get a HTTP/1.1 403 Forbidden when downloading direct. Though when a foreign site links to a Youtube video, I can download with Net Transport>. Seems to me that I have downloaded from there in the past. Looking in logs on this computer, perhaps Oct. 2007 it did work. Orbit & Browser Built In do successfully down from Youtube.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100205 SeaMonkey/2.0.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: "Failed writing body" with cUrl

Post by Giorgio Maone »

Unfortunately the problem is cURL always giving precedence to "-O" over "-o".
Therefore if you specify "-O" some Youtube movies fail (because cURL extrapolates a "bad" name), while if you don't and it's not a media download (thus no FNAME is extrapolated by FlashGot) the download is tunneled to standard out.

I'll try to figure out a solution in next release.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
Pronets
Junior Member
Posts: 24
Joined: Sun Feb 21, 2010 10:42 am

Re: "Failed writing body" with cUrl

Post by Pronets »

Giorgio Maone wrote:I'll try to figure out a solution in next release.
Ok, grazie :)
Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.9.2.2) Gecko/20100316 Firefox/3.0.3
Post Reply