Hello Vincent,

I have tried with GetLastError as you suggested. I got error 12002, wich it seems to be ERROR_INTERNET_TIMEOUT (https://docs.microsoft.com/en-us/win...wininet-errors)
I bet that I don't get error 408 with LastErrorCode because is not a server thing, but a local thing.

Can I do something more to get finished the request and not just display an error?


EDIT: I have found that in https://docs.microsoft.com/en-us/win...t/option-flags it seems to be a way to change the timeout. Not sure if this flags can be managed with peTransferFlags.