503 HTTP Response


#1

Having Cloudflare “I’m under attack” mode, cannot create GET/POST requests using cURL, getting 503 HTTP error. Any solutions to avoid 503 HTTP error?


#2

Thats exactly what the Im Under Attack mode does.

You can try to whitelist the IPs you are trying to curl from to bypass this mode.


#3

However browser GET/POST methods are fine. I assume cloudflare asks for appropriate request headers?


#4

Do they work straight away or only after a successfully completed challenge?


#5

Browser GET/POST methods work after a successful challenge completion.


#6

Thats explains it :wink:


#7

Browsers go through challenge, would it be possible to simulate the same operation using cURL?


#8

Possible yes, but you basically need to emulate the entire request workflow.


#9

You will need JavaScript and cookies to pass the challenge page.


#10

So using cURL and get a 200 HTTP response is to make a request with cookies? I have JavaScript and cookies enabled.


#11

Problem solved. Request headers were incomplete using cURL. Specifically Connection header, it appeared non existent.


#12

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.