Android app POST request to Apache sending Expect 100 header

I've one android application which makes an POST request to one apache server. But the app sends the "Expect: 100" header, apache responds with a 417 status message, and the connection is finished and nothing is done...

I've used the mod_header, on .htaccess and pre_virtualhost_global.conf files to remove the expect header, but doesn't works.

What's the best way to do this? On server or on the app? And how fix?

Thanks.

Answers


I've solved my problem using the following code, where mClient is one object of DefaultHttpClient class.

mClient.getParams().setParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE, false);

If anyone has a batter solution, please share.


Need Your Help

Getting children node only of specified node in openxml

sql xml nodes

I am Importing XML document into SQL tables. It is nested xml. I need to do 3 tables of it. I decided to use cursors. I am looking up, row by row through main node with first cursor. It works perfe...

Exploiting the BackGroundWorker for cross-thread invocation of GUI actions on Winforms controls?

c# .net winforms synchronization backgroundworker

Inspired by my own experience with multithreaded Winforms applications, as well as questions such as

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.