Why do I see extra requests while testing a PHP custom script from a browser URL?
Environment:
Connect for PHP (CPHP) API, Custom/File Manager Scripts
Oracle B2C Service
Issue:
I am running tests of a PHP custom script and there are clearly more requests being run that I have initiated. What could be causing this?
Resolution:
Web browsers are known to retry requests upon receiving certain types of errors that are determined to potentially relate to the network in use. This can include 504 Gateway Time-out responses received upon a script timing out at five minutes, as well as other types of errors that may be encountered. The recommendation is to a) test using another tool such command line curl, b) use POST instead of GET requests, and c) code scripts so that they will not reach the five minute server timeout.
For further details see
Answer ID 12923: Server side timeouts for PHP/File Manager custom scripts