ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CUrl Proxy issue

January 12, 2008 5:27am

Subscribe [2]
  • #1 / Jan 12, 2008 5:27am

    manilodisan

    223 posts

    Anyone knowing why curl successfully uses socks5 and prints an error on socks4?

    This works:

    curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);

    This doesn’t:

    curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);

    The error:

    Notice:  Use of undefined constant CURLPROXY_SOCKS4 - assumed 'CURLPROXY_SOCKS4'

    I do have the latest versions of php and curl installed…

  • #2 / Dec 10, 2008 12:05am

    amites

    37 posts

    has anyone figured out a way around this?

    I’m running into

    Use of undefined constant CURLOPT_PROXYTYPE - assumed 'CURLOPT_PROXYTYPE'
  • #3 / Dec 10, 2008 4:47am

    narkaT

    113 posts

    which php/curl version you’re using?

    the manual says the ‘CURLOPT_PROXYTYPE’ constant was added in curl 7.1 and php 5.0 😉

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases