i just wrote it without looking at your code anyhow
the thing that stucked me was the need for the contentlength field, i didn't see that, idk even how i figured it out but there it is...
i will look at your code now to see what you did but #realy v1.8.1 is now live and does all the admin http port stuff with nip-98