Home > Software engineering >  XMLHTTP get captcha image problem
XMLHTTP get captcha image problem

Time:09-21

Website: http://218.85.72.86:8080/fj_MedDevBid/HttpChannel? Action=WEBSITE_GOTO_LOGIN_SYS_A & amp; USERTYPE=2 & amp; SUBSYSTEM=& amp; HOSTYPE=3

Verification code address:
http://218.85.72.86:8080/fj_MedDevBid/HttpChannel? Action=KDA__445C472EBBA664EC7BD54AD3FA8B67FF & amp; Rand=0.8396945820770367

Among them: action=KDA__445C472EBBA664EC7BD54AD3FA8B67FF available from the web page of
Rand=0. NNN is available random
Also: cookies=JSESSIONID=0000 xwqyc1gzdxcfrzcmqkxxxxxxx also has obtained from the web page
Question:
1. Captcha images in IE directly open the captcha address can be normal display,
2. Error: via XMLHTTP (get verification code address false) obtained written to a file, normally this file should be a picture, and return the file content is, the following
html>

<meta HTTP - equiv="content-type" Content="text/HTML. Charset=GBK "& gt;
Wrong & lt;/title> <br/><The link href="https://bbs.csdn.net/topics/css/main.css" rel="stylesheet" type="text/CSS" & gt; <br/><The script type="text/javascript" SRC="https://bbs.csdn.net/js/common.js" & gt; </script> <br/><style type="text/css"> <br/><br/>How to solve this problem, thank you! <br/><p class="article - content rp"> CodePudding user response: </p>2. Error: via XMLHTTP (get verification code address false) obtained written to a file, normally this file should be a picture, and the returned is text, images cannot be obtained<p class="article - content rp"> CodePudding user response: </p>Maybe you'll have to base64 decoding, </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/Softwareengineering/18654.html" target="_blank" style="color:#999">https//www.codepudding.com/Softwareengineering/18654.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/Softwareengineering/18653.html'>Novice consult, how to use VB to write a digital keyboard</a></div> <div class="detail-arr-right">Next:<a href='/Softwareengineering/18655.html'>Could you tell me how to make such MFC VS2017 picture browsing</a></div> </div> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="hot-tags neitags"> <ul> <li><i class="iconfont icon-x-tags"></i> Tags:  </li> <a href='/e/tags/?tagname=Network+programming' target='_blank'>Network programming</a> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="xiangguan"> <ul class="msg msghead"> <li class="tbname">Related</li> </ul> <ul> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="flinks"> <ul> <li><i class="iconfont icon-x-tags"></i> Links:  </li> <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li> </ul> </div> </div> </div> </div> <div class="footer"> <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>  <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html"> Privacy Policy</a></p> <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p> </div> <script type="text/javascript" src="/skin/code/tianhu.js"></script> </body></html>