Fooasdsad Baraasdasd

Greenhorn
+ Follow
since May 19, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fooasdsad Baraasdasd

SOLVED!

The problem was Content-Lenght . We must let URLConnection set that, instead of setting it manually.

So I removed "_uc.setRequestProperty("Content-Length", Integer.toString(parameters.length()));" and Fixed.
7 years ago
Sorry, forgot to post it... edited now.


And yea, already tried "URLEncoder.encode(X, encoding)" on those parameters but gives same error.
7 years ago
Hi

Why I getting ProtocolException: content-length promised 343 bytes, but received 0 in Android 4.x when using URLConnection? while works fine in Android 2.3.3...

Stacktrace:

Code:

What's the problem?
I've searched alot, but couldnt find the solution

Thanks in advance.
7 years ago