看了leetcode提交代码的接口,想模拟提交过程,但把从浏览器看到的所有头部都发过去了还是返回405.接口是
https://leetcode.com/problems/longest-common-prefix/interpret_solution/
相关请求header是(去除cookie后)
Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate
Accept-Language:zh-CN,zh;q=0.8,en;q=0.6
Connection:keep-alive
Content-Length:177
Content-Type:application/json;charset=UTF-8
Cookie:PHPSESSID=; csrftoken=; _ga=GA1.2.1819762987.1461496079; __atuvc=4%7C18%2C22%7C19%2C12%7C20
DNT:1
Host:leetcode.com
Origin:https://leetcode.com
Referer:https://leetcode.com/problems/longest-common-prefix/
User-Agent:Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36
X-CSRFToken:WWVGhawGNjGhzCUlYA3YDzKN0kxfEhoN
X-Requested-With:XMLHttpRequest
用jsoup和postmen把全部参数都发送了还是不成功, 一直返回405. 请问这是某种反爬虫措施还是我哪里有错?尝试了get和post都不行