Question:
Hi Chilkat Support,
I want to use chilkat http to retrieve the proxy list from https://nordvpn.com.
Enter the following link into IE, no issue at all :
===================================================================================================
However, if I used chilkat http lib, chilkat-9.5.0-x86-vc9 latest version, it is not successful, my code :
Using quickGetStr:
Http2.put_CookieDir("memory");
Http2.put_SaveCookies(true);
Http2.put_ConnectTimeout(40);
Http2.put_ReadTimeout(40);
Http2.put_FollowRedirects(true);
const char *res = Http2.quickGetStr("https://nordvpn.com/free-proxy-list/1/?country[0]=CN&allp=all&port&sp[0]=2&sp[1]=1&protocol[0]=HTTP&ano[0]=High&sortby=0&way=0&pp=1");
*res equals 0 (ie. no valid response)
======================================================================
Using SynchronousRequest
Request2.put_HttpVerb("GET");
Request2.put_Path("/free-proxy-list/1/?country[0]=CN&allp=all&port&sp[0]=2&sp[1]=1&protocol[0]=HTTP&ano[0]=High&sortby=0&way=0&pp=1");
Request2.AddHeader("Accept","text/html,application/xhtml+xml,/");
Request2.AddHeader("User-Agent","Mozilla/5.0 (compatible; MSIE 9.0; QDesk 2.3.1185.202; qdesk 2.4.1263.203; Windows NT 6.1; WOW64; Trident/6.0)");
Request2.AddHeader("Host","nordvpn.com");
Request2.AddHeader("Connection","Keep-Alive");
Response2 = Http2.SynchronousRequest("nordvpn.com",443,true,Request2);
Response2 equals 0 (no valid response true);
BUT, if I try to debug the traffic via Fiddler by adding
Http2.put_ProxyDomain("127.0.0.1");
Http2.put_ProxyPort(8888);
Both codes (quickGetStr & SynchronousRequest) have no issue at all to retrieve the proxy list !!!!!
If there is a problem with chilkat http lib, especially due to redirect ?
If there is issue with my code, then via Fiddler, my code will not work to get the proxy list.
Please advise
Thanks in advance.
Best regards
Dragon