vtortola and Praveen are correct, please add details about the error to your question. It could be a parsing error, because your response is zero length, but it could be something completely different. Knowing the specific error that's being caught would make it much easier to answer your question.
–
EnricoDec 15 '12 at 20:00

@vtortola i have updated the question, is that what you ment?
–
Noam GalDec 15 '12 at 20:08