[GH-ISSUE #362] Content-length is not set properly #306

Closed
opened 2026-02-28 01:24:38 +03:00 by kerem · 8 comments
Owner

Originally created by @suculent on GitHub (May 3, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/362

Works on iPhone, but fails on certain Androids accessing the Captive Portal. Solution to fix this was straitforward... adding explicit Content-Length header before all ->send requests.

Originally created by @suculent on GitHub (May 3, 2017). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/362 Works on iPhone, but fails on certain Androids accessing the Captive Portal. Solution to fix this was straitforward... adding explicit Content-Length header before all ->send requests.
kerem closed this issue 2026-02-28 01:24:39 +03:00
Author
Owner

@suculent commented on GitHub (May 3, 2017):

Following solution works for me:

github.com/suculent/WiFiManager@ada93b721a

<!-- gh-comment-id:298903012 --> @suculent commented on GitHub (May 3, 2017): Following solution works for me: https://github.com/suculent/WiFiManager/commit/ada93b721a235f4bae379e1804c32d962541b992
Author
Owner

@scop commented on GitHub (May 26, 2017):

I was bitten by this on Android 7.1.2, and the suggested change works for me too, please apply.

<!-- gh-comment-id:304247277 --> @scop commented on GitHub (May 26, 2017): I was bitten by this on Android 7.1.2, and the suggested change works for me too, please apply.
Author
Owner

@scop commented on GitHub (Jul 10, 2017):

@suculent, could you submit a pull request to get this fix in? Thanks!

<!-- gh-comment-id:314019158 --> @scop commented on GitHub (Jul 10, 2017): @suculent, could you submit a pull request to get this fix in? Thanks!
Author
Owner

@suculent commented on GitHub (Jul 10, 2017):

I've already done this quite a while ago https://github.com/tzapu/WiFiManager/pull/363

<!-- gh-comment-id:314063959 --> @suculent commented on GitHub (Jul 10, 2017): I've already done this quite a while ago https://github.com/tzapu/WiFiManager/pull/363
Author
Owner

@tzapu commented on GitHub (Jul 10, 2017):

thanks guys, merged

you need to download the latest master though, until there will be a release

<!-- gh-comment-id:314070294 --> @tzapu commented on GitHub (Jul 10, 2017): thanks guys, merged you need to download the latest master though, until there will be a release
Author
Owner

@tablatronix commented on GitHub (Sep 15, 2017):

The sdk seems to already send content-length headers, I wonder why android is so picky about the order maybe ?

<!-- gh-comment-id:329835977 --> @tablatronix commented on GitHub (Sep 15, 2017): The sdk seems to already send content-length headers, I wonder why android is so picky about the order maybe ?
Author
Owner

@suculent commented on GitHub (Sep 15, 2017):

It did not happen only on Android, at least I'm not the Android case, we use iPhones and iPad Pro to test WiFiManager in AP mode.

I need to find correct test case. After upgrading to latest WiFiManager I need to solve own issues first before going back to AP mode.

Odesláno z iPhonu

    1. 2017 v 18:44, Shawn A notifications@github.com:

The sdk seems to already send content-length headers, I wonder why android is so picky about the order maybe ?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

<!-- gh-comment-id:329864169 --> @suculent commented on GitHub (Sep 15, 2017): It did not happen only on Android, at least I'm not the Android case, we use iPhones and iPad Pro to test WiFiManager in AP mode. I need to find correct test case. After upgrading to latest WiFiManager I need to solve own issues first before going back to AP mode. Odesláno z iPhonu 15. 9. 2017 v 18:44, Shawn A <notifications@github.com>: > The sdk seems to already send content-length headers, I wonder why android is so picky about the order maybe ? > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub, or mute the thread. >
Author
Owner

@tablatronix commented on GitHub (Sep 15, 2017):

Maybe this changed in SDK at some point, shrug

<!-- gh-comment-id:329865994 --> @tablatronix commented on GitHub (Sep 15, 2017): Maybe this changed in SDK at some point, shrug
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#306
No description provided.