Is there any chance you can reproduce the problem with a sequence of curl commands? Like in a way so that I could copy and paste it to a terminal to reproduce it? Without something like that helping with issues like this ends up being a crazy guessing game.