This might be a good place to start. Clearly if you're getting a 400 Bad Request error you're either not following all the rules or you're not sending the appropriate data. If you post some code, I or someone else here might be able to give you a better idea about what could be going wrong with your program specifically.