使用PHP Curl获取页面时出现400 Bad Request
I keep getting a 400 bad request code from a hotfile.com page when I try to get it with curl.
- I can get the pages fine in the browser
- The first (login) (post) request in the script works
- The last (get) request in the for loop works
- I have tried setting the curl headers to the same headers sent by my browser
- I have tried sleeping up to 5 seconds between requests, to no difference
The problem is all the curl get requests in the for loop return a 400 bad request except for the last one which is freakin weird to me.
It might be difficult for people to try unless you have a hotfile account as the script won't work on a non-registered account.
Cheers in advance :)