所以我不熟悉php.我想从网站上获取catpcha.然后我想在我的网页上显示它并发送一个小的帖子请求并获得结果.我所说的网站是http://www.bollywoodmotion.com/mobile-tracker-with-name.html
我想从该页面获取验证码到我的页面,并在我的页面中输入验证码,并从我的页面发送相同的内容.我在使用c#的软件中完成了这个.我也想要一个网络版,因为我不知道php.我尝试搜索和卷曲的任何方式对我来说都是最好的选择.所以有人可以帮我提供示例php代码.
这是由它做的请求.
http://www.bollywoodmotion.com/mobile-tracker-process.html
POST /mobile-tracker-process.html HTTP/1.1
Host: www.bollywoodmotion.com
User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:26.0) Gecko/20100101 Firefox/26.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.bollywoodmotion.com/mobile-tracker-with-name.html
Cookie: __utma=164959532.607980600.1392265746.1392293744.1392969352.5; __utmz=164959532.1392265754.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
PHPSESSID=t37p2pqeclbmc2tfvd8tt18qs5; __utmb=164959532.2.9.1392969356013; __utmc=164959532
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 36
num=960xxxxxx&6_letters_code=hy5xjf
Run Code Online (Sandbox Code Playgroud)
HTTP/1.1 200 OK
Date: Fri, 21 Feb 2014 07:56:11 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Encoding: gzip
Set-Cookie: dle_user_id=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.bollywoodmotion.com; httponly
Set-Cookie: dle_password=deleted; …Run Code Online (Sandbox Code Playgroud)