Page 1 of 1
"Failed writing body" with cUrl
Posted: Sun Mar 28, 2010 10:57 am
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?
Re: "Failed writing body" with cUrl
Posted: Sun Mar 28, 2010 11:11 am
by Giorgio Maone
Could you give me a link?
Re: "Failed writing body" with cUrl
Posted: Sun Mar 28, 2010 11:23 am
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?
Re: "Failed writing body" with cUrl
Posted: Sun Mar 28, 2010 4:51 pm
by Giorgio Maone
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...
Re: "Failed writing body" with cUrl
Posted: Sun Mar 28, 2010 4:54 pm
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
Re: "Failed writing body" with cUrl
Posted: Sun Mar 28, 2010 6:31 pm
by Pronets
[-o FNAME] now work with youtube but download not work more with other normal file.
Re: "Failed writing body" with cUrl
Posted: Sun Mar 28, 2010 7:26 pm
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).

Re: "Failed writing body" with cUrl
Posted: Sun Mar 28, 2010 9:38 pm
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?
Re: "Failed writing body" with cUrl
Posted: Mon Mar 29, 2010 4:37 pm
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.
Re: "Failed writing body" with cUrl
Posted: Mon Mar 29, 2010 5:03 pm
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]
Re: "Failed writing body" with cUrl
Posted: Mon Mar 29, 2010 5:16 pm
by Pronets
Re: "Failed writing body" with cUrl
Posted: Mon Mar 29, 2010 5:53 pm
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.)
Re: "Failed writing body" with cUrl
Posted: Mon Mar 29, 2010 8:00 pm
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.
Re: "Failed writing body" with cUrl
Posted: Mon Mar 29, 2010 8:25 pm
by Pronets
Giorgio Maone wrote:I'll try to figure out a solution in next release.
Ok, grazie
