Archived Forum Post

Index of archived forum posts

Question:

Delphi socks/http proxy not working

Jul 11 '15 at 15:51
      CkHttp_putProxyDomain(Chilkat,pWideChar(widestring(strProxyIP)));
      CkHttp_putProxyPort(Chilkat,StrToInt64(strProxyPort));
      CkHttp_putProxyLogin(Chilkat,pWideChar(widestring(strProxyUser)));
      CkHttp_putProxyPassword(Chilkat,pWideChar(widestring(strProxyPassword)));

Says, Error: Could not set proxy

I've tried manually putting in the proxy details without the variables, same thing, also tried socks.. what am i missing?


Answer

Here is the last error text:

Error: Could Not Set Proxy Cheyenneailsnzxnfh7682@outlook.com (64.187.105.241:34519)
using http proxy Cheyenneailsnzxnfh7682@outlook.com (64.187.105.241:34519)
shotgun19>Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36 Cheyenneailsnzxnfh7682@outlook.com (64.187.105.241:34519)

ChilkatLog:
  QuickGetStr:
    DllDate: Jun 23 2015
    ChilkatVersion: 9.5.0.51
    UnlockPrefix: Anything for 30-day trial
    Username: NOODLESPC:Nick
    Architecture: Little Endian; 32-bit
    Language: Delphi/C++ Builder XE2/XE3
    VerboseLogging: 0
    url: http://www.whatismyipaddress.com
    httpRequestStr:
      a_quickReq:
        quickHttpRequest:
          httpVerb: GET
          url: http://www.whatismyipaddress.com
          openHttpConnection:
            Opening connection through an HTTP proxy.
            proxyDomain: 64.187.105.241
            proxyPort: 34519
            httpHostname: www.whatismyipaddress.com
            httpPort: 80
            ssl: 0
            Connecting to the HTTP proxy without using a CONNECT tunnel.
            HTTP connection succeeded.
          --openHttpConnection
          buildQuickRequest:
            genStartLine:
              startLine: GET http://www.whatismyipaddress.com/ HTTP/1.1
            --genStartLine
            Adding Basic Proxy Authentication Header
            proxyLogin: jmayor
            addCookies:
              Auto-adding any accumulated cookies.
              CookieDir: memory
              CookieDomain: www.whatismyipaddress.com
              CookiePath: /
              loadCookieJar:
                Path: /
                GetDomainCookiesXml:
                  CookieDir: memory
                  Domain: www.whatismyipaddress.com
                  HashKey: whatismyipaddress_com.xml
                  No cookies exist yet.
                --GetDomainCookiesXml
              --loadCookieJar
              No cookie jar found.
            --addCookies
          --buildQuickRequest
          sendRequestHeader:
            sendHeaderElapsedMs: 0
          --sendRequestHeader
          statusCode: 407
          statusText: Proxy Authentication Required
          readResponseBody:
            contentLength: 3976
          --readResponseBody
          proxyAuthMethodRequired: Basic realm="Please login"
          Retrying the HTTP request with the indicated proxy authentication method.
          openHttpConnection:
            Using existing connection.
          --openHttpConnection
          buildQuickRequest:
            genStartLine:
              startLine: GET http://www.whatismyipaddress.com/ HTTP/1.1
            --genStartLine
            Adding Basic Proxy Authentication Header
            proxyLogin: jmayor
            addCookies:
              Auto-adding any accumulated cookies.
              CookieDir: memory
              CookieDomain: www.whatismyipaddress.com
              CookiePath: /
              loadCookieJar:
                Path: /
                GetDomainCookiesXml:
                  CookieDir: memory
                  Domain: www.whatismyipaddress.com
                  HashKey: whatismyipaddress_com.xml
                  No cookies exist yet.
                --GetDomainCookiesXml
              --loadCookieJar
              No cookie jar found.
            --addCookies
          --buildQuickRequest
          sendRequestHeader:
            sendHeaderElapsedMs: 0
          --sendRequestHeader
          statusCode: 407
          statusText: Proxy Authentication Required
          readResponseBody:
            contentLength: 3976
          --readResponseBody
          proxyAuthMethodRequired: Basic realm="Please login"
        --quickHttpRequest
      --a_quickReq
      convertResponseBodyToUtf8:
        No charset specified, assuming Windows-1252
        Converting to utf-8 charset.
        fromCodePage: 1252
      --convertResponseBodyToUtf8
      Returning failed status because of HTTP response code.
    --httpRequestStr
    Failed.
  --QuickGetStr
--ChilkatLog
 Cheyenneailsnzxnfh7682@outlook.com (64.187.105.241:34519)
Finished Processing...