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

932

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.

135

Answer

Solution:

request.getParams().setBooleanParameter( "http.protocol.expect-continue", false ) worked in my case

People are also looking for solutions to the problem: multidimensional array - PHP neat way of displaying results of a JOIN statement with duplicate IDs

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.