Preg_match()过滤包含符号%,$的HTTP请求

时间:2017-05-08 06:25:13

标签: php

我正在学习使用preg_match()正则表达式来过滤Http请求。我再次收到此请求

POST /login.php HTTP/1.1
Host: www.copyscape.com
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://www.copyscape.com/login.php
Content-Type: application/x-www-form-urlencoded
Content-Length: 74
Cookie: ck=BXLD2UDMUA88KWGC0GK8WCGOC; PHPSESSID=8cup5f02hbetnbfbbv9vug37q0
Connection: keep-alive
Upgrade-Insecure-Requests: 1

login_username=jeezman88%40vfxm.mail.com.com&login_password=(Passw0rd)&log_in=Log+inÿÿÿ7—R

现在我想使用 php preg_match()

提取 此部分
login_username=jeezman88%40vfxm.mail.com.com&login_password=(Passw0rd)&log_in=Log+inÿÿÿ7—R

我昨天没有收到回复,问题是我如何解决这个问题?没有冒犯我对此很新。

0 个答案:

没有答案