login about faq

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 :

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

===================================================================================================

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

asked Sep 01 '14 at 18:29

dragon's gravatar image

dragon
333711

edited Sep 01 '14 at 18:36

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×13

Asked: Sep 01 '14 at 18:29

Seen: 933 times

Last updated: Sep 01 '14 at 18:36

powered by OSQA