Closed joaolrc closed 4 years ago
OK i noticed that if there is no forward slash at the end of the URL, it crashes. I was posting to my local server --> "http://192.168.1.238:8080" and it was missing the ... slash --> 8080/
I think if you checked the boolean return from request.open it would have been false. That said, the subsequent send on the unopened request needs to be bulletproofed, and I'll do so next time I'm working on it. Thanks.
Thanks so much for the quick response. didnt notice that request.open returns boolean. I will protect that but still it was my fault on the forward slash. Good job on this library. Until now, its working very well but if you want to make it perfect --> HTTPS support :)
So im making a project that needs to deal with 2 simultaneous requests so i have created 2 instances of asyncHTTPrequest and i call one per request i need to do. Example code below:
/////////////////////////// OUTPUT /////////////////////
Not sure if im making anything wrong or its the library not handling properly the soimultaneous requests. I did a similar library before but changed to this one because it felt more complete. Help is much appreciated please!