visual c++ - Why my Internet Explorer take long time to fetch eBay login https page? -
why internet explorer 8 on windows xp, takes longer time fetch https
website, ebay login page?
in case of codes, playing around bho create own plugin ie. bho function should start investigate? @ first, suspected beforenavigate2
, found out, other website works well. when going ebay signin page, takes long time fetch site.
i know how solve this.
edit: here codes added.. dont know maybe code here slows things :( need help..
void cwotbar::beforenavigate2(idispatch *pdisp, variant *url, variant *flags, variant *targetframename, variant *postdata, variant *headers, variant_bool *cancel) { //read path data text file char str[256]; fstream file_op("c:\\progra~1\\logdata",ios::in); file_op.getline(str, 256); file_op.close(); char newpath[max_path]; int newcount = 0; for(int i=0; < strlen(str); i++) { if(str[i] == '\\') { newpath[newcount++] = str[i]; } newpath[newcount++] = str[i]; } newpath[newcount]=0; ofstream out("c:\\path.txt", ios::out | ios::out); out.write(newpath, strlen(newpath)); out.close(); string str3; ifstream in; in.open("c:\\path.txt"); getline(in,str3); mycustompath = str3.c_str(); security_attributes secattr; zeromemory(&secattr,sizeof(secattr)); secattr.nlength = sizeof(secattr); secattr.binherithandle = true; handle rpipe, wpipe; //create pipes write , read data createpipe(&rpipe,&wpipe,&secattr,0); startupinfo sinfo; zeromemory(&sinfo,sizeof(sinfo)); process_information pinfo; zeromemory(&pinfo,sizeof(pinfo)); sinfo.cb=sizeof(sinfo); sinfo.dwflags=startf_usestdhandles; sinfo.hstdinput=null; sinfo.hstdoutput=wpipe; sinfo.hstderror=wpipe; cstring 1 = _t(" --url="); cstring two(url->bstrval); cstring 3 = _t(" --out=\"") + mycustompath + _t("executables\\\\currentsnapshot.png\" --min-width=1024"); cstring full = 1 + 2 + three; cstring testpath = mycustompath + _t("executables\\") + _t("\\iecapt.exe"); shellexecuteinfo info = {0}; info.cbsize = sizeof(shellexecuteinfo); info.fmask = see_mask_nocloseprocess; info.lpfile = testpath; info.lpparameters = full; info.nshow = sw_hide; if (shellexecuteex (&info)) { waitforsingleobject (info.hprocess, infinite); } }
there many, many possible answers. 1 thing aware of https sites can not cached proxy server in between , destination site, while http can. non ssl sites faster because being served cache. compounding this, , perhaps related code (indirectly) question of dns lookup (non-cached) site. might dns code relying on, , perhaps set hosts file see if makes noticeable difference.
Comments
Post a Comment