If you are getting that, then your article was successfully created. I cannot think of another reason why it would be redirecting you. Also, that error message makes little sense, since that line doesn't add cookies, and there's nothing before it to send headers. If you have a more verbose message, you can PM it to me.