login about faq

Enter the following link into IE, I am able to view the proxy list :

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, 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);

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

Is there a problem with my code ?

Please advise.

Thanks.

Best regards

Dragon

asked Aug 28 '14 at 19:09

dragon's gravatar image

dragon
333711


To debug, I added the following code to check the traffic via Fiddler :

Http2.put_ProxyDomain("127.0.0.1");

Http2.put_ProxyPort(8888);

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

No issue at all ! I am able to get the proxy list.

However, once I removed (comment out) the proxy code, no valid response again !

I believe that I am missing something in my code.

Appreciate your fast response.

Thanks.

Best regards

Dragon

link

answered Aug 30 '14 at 07:24

dragon's gravatar image

dragon
333711

Your answer
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:

×186

Asked: Aug 28 '14 at 19:09

Seen: 790 times

Last updated: Aug 30 '14 at 07:24

powered by OSQA