I am uploading a video to YouTube using the FileReference.upload() method. When it finishes, YouTube sends a 302 redirect, which causes FileReference to trigger an IOErrorEvent. Is there any way to find out what the redirect was supposed to be to? YouTube appends the id of the newly created video to the 302 redirect Location header. I just need to get at the header. I don't need to follow the redirect.