0

我从以下命令中得到 405 Method Not Allowed:

curl -H "Accept: Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" -H "Content-type: application/json" -X POST --data "password=456&press=Submit" http://192.168.0.135

curl -A "User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0" -H "Content-Type: X-Requested-With: XMLHttpRequest" --data "password=456&press=Submit" http://192.168.0.135

我正在尝试卷曲一个 javascript 表单,这是来自篡改数据的标题和响应:

GET http://192.168.0.135/auth.htm?t=Mon,%2002%20Sep%202013%2008:42:14%20GMT Load Flags[LOAD_BACKGROUND  ] Content Size[-1] Mime Type[text/html]
   Request Headers:
      Host[192.168.0.135]
      User-Agent[Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0]
      Accept[*/*]
      Accept-Language[en-US,en;q=0.5]
      Accept-Encoding[gzip, deflate]
      DNT[1]
      X-Requested-With[XMLHttpRequest]
      Authorization[Basic UG9seWNvbTo0NTY=]
      Referer[http://192.168.0.135/login.htm]
      Connection[keep-alive]
   Response Headers:
      Server[Polycom SoundPoint IP Telephone HTTPd]
      Date[WED, 21 AUG 2013 04:21:42 GMT]
      Connection[keep-alive]
      Transfer-Encoding[chunked]
      Content-Type[text/html]
4

0 回答 0