Save cURL verbose output to file or do it like browser "save as.."

hi there !

i have exactly the same problem like this guy here

i am not able to save the curl verbose output..

the sollution in this thread (redirecting stderr to a file) does not work for me.

iam wondering why i get stucked with such an simple problem.. iam hoping that there is a simple sollution i didn' get yet

when iam firing my curl command curl says

[1] 3319
[2] 3320
[3] 3321

then i got my prompt back and one second or so it writes things like this to console:

*   Trying 255.255.255.255... connected
* Connected to www.foo.bar (255.255.255.255) port 80 (#0)
> POST /exec/bar.php?id=112234 HTTP/1.1
...

this is what i want to save!

iam trying to save the output because the server responds with a "application/octet-stream" (downloading a file)

and curl puts the binary stuff on the screen like

3]�^9x=p&6-O2'j@(8:hkLMIAH>#d)V,AU1yA\1Gyv74.F4I;(G_%:i}V{>EyvY{"6`Q5q_:h

i did not find a way, to save this output to file file like common browser does with "save as.."

it would be great if someone is able to help ! it took a long time for me to figure out how the POST should be llok like to get a right response.. i was happy when it works and then "okay, last thing.. save it to a file" .. ^^

---------- Post updated at 04:49 PM ---------- Previous update was at 07:44 AM ----------

well, after trying it again the "-o" parameter worked perfectly !

i don't know why it does not worked this morning !