java - expectation failed in android during photo upload
945
while uploading images to server, it gives me expectation failed error response code 417.
My server side coding is in php, and client is android
while uploading images to server, it gives me expectation failed error response code 417.
My server side coding is in php, and client is android
People are also looking for solutions to the problem: multidimensional array - PHP neat way of displaying results of a JOIN statement with duplicate IDs
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.
Find the answer in similar questions on our website.
Answer
Solution:
The RFC says that this is due to an Expect request header that the server can't meet. Look at the request headers sent by your client application, and see what their purpose is and if they're necessary.
Answer
Solution:
request.getParams().setBooleanParameter( "http.protocol.expect-continue", false ) worked in my case