Try setting your User-Agent string to the same thing Firefox sends.
As keszler notes, you need to capture what works.
I like to use the paros proxy for capturing http traffic.
Update.... Oh Dang my brain is just catching up with my fingers.
How can one use a proxy to debug another proxy?
Paros can forward traffic to a second proxy but I don't know if the authentication will work then.