开发者

expectation failed in android during photo upload

开发者 https://www.devze.com 2023-02-11 01:29 出处:网络
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开发者_如何转开发The RFC says that this is due to an Ex

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开发者_如何转开发


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消