"Failed writing body" with cUrl
"Failed writing body" with cUrl
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?
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
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: "Failed writing body" with cUrl
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
Re: "Failed writing body" with cUrl
f.e.:Giorgio Maone wrote:Could you give me a link?
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
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: "Failed writing body" with cUrl
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:f.e.:Giorgio Maone wrote:Could you give me a link?
http://www.youtube.com/watch?v=akHfueLn ... r_embedded
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).Pronets wrote: Do it is possibile to add a "Placeholders" with the name file that i see in status bar?
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
Not sure about what you mean here...Pronets wrote:Do it is possibile to choice the download manager in the name file of status bar?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
Re: "Failed writing body" with cUrl
I wanted to mean what you said thanksGiorgio Maone wrote:Not sure about what you mean here...Pronets wrote: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
Re: "Failed writing body" with cUrl
[-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
Re: "Failed writing body" with cUrl
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
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: "Failed writing body" with cUrl
What do you mean? It's working fine for me with any file. Could you show me one which fails for you?Pronets wrote:[-o FNAME] now work with youtube but download not work more with other normal file.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
Re: "Failed writing body" with cUrl
f.e.:Giorgio Maone wrote:What do you mean? It's working fine for me with any file. Could you show me one which fails for you?Pronets wrote:[-o FNAME] now work with youtube but download not work more with other normal file.
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
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: "Failed writing body" with cUrl
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]
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
Re: "Failed writing body" with cUrl
But now is not working in YouTube, f.e.:
http://www.youtube.com/watch?v=x89xAXHd ... r_embedded
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
Re: "Failed writing body" with cUrl
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.)

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
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: "Failed writing body" with cUrl
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.
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
Re: "Failed writing body" with cUrl
Ok, grazieGiorgio Maone wrote:I'll try to figure out a solution in next release.

Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.9.2.2) Gecko/20100316 Firefox/3.0.3