Using the header Access-Control-Allow-Methods
you can define what type of request can be made to a file (or route) on your source server.
So if you want to allow only requests of the type GET
for your page you must define
header("Access-Control-Allow-Methods: GET");`
In your source file (or route).
To allow multiple methods, you can simply separate them by ,
(comma) in this way
header("Access-Control-Allow-Methods: GET, POST, DELETE, PUT, HEADER, OPTIONS");
Can combine any number of methods in the defined list.
So if you are making a request GET for a route that accepts as much GET how much POST the return can be an HTML because the return of the request GET is an HTML.
Each of these requests is received by the server and handled individually, so, answering your question, there is the possibility of the Google play your domain in Blacklist for excessive requests, preventing you from searching for a request on the site for a certain time or even permanently. (I don’t know the terms of use of the service to answer you for sure)
add the feedback in your question tbm so I could help you better.
– user148170
You say the return of what comes from the Curl query?
– Rayan Marcus