Accessing proxy server in PHP

Discussion in 'PHP' started by parallelsruler, Feb 1, 2011.

  1. #1
    Hi,

    I was trying to access an external url using file_get_contents(), from my workplace. But here they are using a proxy server and need authentication. I have the credentials but dont know how to use that in php. I know we can use curl for this but i want to do it in simple php. Can somebody help me.

    Thanks in advance.
     
    parallelsruler, Feb 1, 2011 IP
  2. JohnRazmus

    JohnRazmus Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm afraid the only options you have are curl, unless you can pass the authentication in the url itself - probably not though.
     
    JohnRazmus, Feb 2, 2011 IP