-
Notifications
You must be signed in to change notification settings - Fork 4
Getting 400 Bad Request on second call to same host #14
Comments
I rolled back to v2.1.2 and everything works as expected! The logging output is also vastly different with the same log level enabled. Try and compare the two:
|
Just tested v2.1.3 and the issue showed up again. So something happened between v2.1.2 and v2.1.3 that gives me the above issue. Guess it's this one as mentioned earlier. |
Sorry I have no issue here with many requests to original example's site, repeatedly, such as
So you have to check what's wrong / difference to other working I really don't have time to deal with this. Sorry. Good Luck,
|
Hi @Yocal I just rethink and will make a new release to fix this issue, which is similar to Host/Headers not always sent with 1.10.1 #44 of AsyncHTTPRequest_Generic library |
Thank you very much! :) I was just about to state my case that when not even I appreciate that you wanna look into it! :) Thanks. |
### Releases v2.2.1 1. Default to reconnect to the same `host:port` after connected for new HTTP sites. Check [Host/Headers not always sent with 1.10.1 #44](khoih-prog/AsyncHTTPRequest_Generic#44) and [Getting 400 Bad Request on second call to same host #14](#14) 2. Use `allman astyle` and add `utils`
### Releases v2.2.1 1. Default to reconnect to the same `host:port` after connected for new HTTP sites. Check [Host/Headers not always sent with 1.10.1 #44](khoih-prog/AsyncHTTPRequest_Generic#44) and [Getting 400 Bad Request on second call to same host #14](#14) 2. Use `allman astyle` and add `utils`
Hi @Yocal The new AsyncHTTPSRequest_Generic v2.2.1 has just been published. Your contribution is noted in Contributions and Thanks Please test and report more bugs. Best Regards, Releases v2.2.1
|
400 Bad Request
First time I request data from my server it works. If I call it again, I get a 400 Bad Request.
The funny thing is it doesn't happen when connecting to the sample URLs.
Steps to Reproduce
Use your own examples but change the URL you are GET'ing from to
https://yocal.dk/test.txt
Expected behavior
Same response both times
Actual behavior
First request returns 200, second request returns 400
Log
First request:
Second request
Information
Could it be related to: #12 ?
The text was updated successfully, but these errors were encountered: