Question:
Hi Chilkat Support,
I am using the 9.5.0.36 VC++ 9 win32. I encounter an issue regarding HTTP Request.
Prior to GET, I have successfully send a HTTP POST with params as shown below :
Request.put_HttpVerb("POST");
Request.put_Path("/member.php?mod=logging&act....");
Request.AddHeader("Accept","text/html, application/xhtml+xml, */*");
Request.AddHeader("Referer","xxxxxxxxxxxx");
Request.AddHeader("Accept-Language","zh-CN");
Request.AddHeader("User-Agent","Mozilla/5.0 .... like Gecko");
Request.AddHeader("Content-Type","application/x-www-form-urlencoded");
Request.AddHeader("Host","xxx.xxx.xxx");
Request.AddHeader("Connection","Keep-Alive");
Request.AddHeader("Pragma","no-cache");
Request.AddParam("fastloginfield","username");
Request.AddParam("username","xxxxxxxxxx");
Request.AddParam("cookietime","2592000");
Request.AddParam("password","xxxxxxxxxx");
Request.AddParam("quickforward","yes");
Request.AddParam("handlekey","ls");
Response = Http.SynchronousRequest("xxxxx",xxx,bSsl,Request);
Taken from session log :
POST /member.php?mod=logging&act...... HTTP/1.1 Content-Type: application/x-www-form-urlencoded Accept: text/html, application/xhtml+xml, / Accept-Language: zh-CN User-Agent: Mozilla/5.0 (MSIE 9.0; Q.....like Gecko Connection: Keep-Alive Referer: http://xxx.xx.xx/ Pragma: no-cache Cookie: xxx....... Host: xxx.xxx.xxxx Content-Length: 132
fastloginfield=username&username=xxxx&cookietime=2592000&password=xxxx&quickforward=yes&handlekey=ls
After this, I did a HTTP GET as shown below :
Taken from session log, params are sent too !Request.put_HttpVerb("GET"); Request.put_Path("/");
Request.RemoveHeader("Content-Type"); Request.RemoveHeader("Pragma"); Request.RemoveAllParams(); Request.AddHeader("Accept","text/html, application/xhtml+xml, */*"); Request.AddHeader("Referer",""); Request.AddHeader("Accept-Language","zh-CN"); Request.AddHeader("User-Agent","Mozilla/5.0 .... like Gecko"); Request.AddHeader("Host","xxx.xx.xxx"); Request.AddHeader("Connection","Keep-Alive");
GET / HTTP/1.1 Accept: text/html, application/xhtml+xml, / Accept-Language: zh-CN User-Agent: Mozilla/5.0 ..... like Gecko Connection: Keep-Alive Referer: http://xx.xx.xx/ Cookie: xxxxx Host: xxx.xxx.xx
fastloginfield=username&username=xxxx&cookietime=2592000&password=xxxx&quickforward=yes&handlekey=ls
Hence, is this a bug ?
Please advise.
Thanks.
Best regards Dragon
This is fixed now in v9.5.0.38.
I will update the download for VC9 ASAP..
Hi Chilkat Support,
Thank you very much !
Best regards Dragon