CURL proxy issue

Discussion in 'PHP' started by amorph, Jan 12, 2008.

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

    This works:
    curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
    PHP:
    This doesn't:
    curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
    PHP:
    The error:
    Notice:  Use of undefined constant CURLPROXY_SOCKS4 - assumed 'CURLPROXY_SOCKS4'
    Code (markup):
     
    amorph, Jan 12, 2008 IP
  2. hogan_h

    hogan_h Peon

    Messages:
    199
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hogan_h, Jan 12, 2008 IP