Net::HTTP::Proxy Access Denied (authentication_failed)

Discussion in 'Ruby' started by zak, Nov 4, 2011.

  1. zak

    zak Guest

    Hi,

    two pc's show different behavior, although they are under the same
    domain in a company network:

    require 'net/http'

    Net::HTTP::proxy('<proxy-address-here>', 8080).start('www.google.com')
    { |http|
    puts http.get('/search?q=ruby')
    }

    This code displays google's page content as expected on my computer,
    while on a colleague's pc "Access Denied (authentication_failed) Your
    credentials could not be authenticated: "Credentials are missing.".
    You will not be permitted access until your credentials can be
    verified.
    This is typically caused by an incorrect username and/or password, but
    could also be caused by network problems."
    appears.
    Any idea how this comes?

    thanks!
     
    zak, Nov 4, 2011
    #1
    1. Advertising

  2. On 11/04/2011 01:31 PM, zak wrote:
    > two pc's show different behavior, although they are under the same
    > domain in a company network:
    >
    > require 'net/http'
    >
    > Net::HTTP::proxy('<proxy-address-here>', 8080).start('www.google.com')
    > { |http|
    > puts http.get('/search?q=ruby')
    > }
    >
    > This code displays google's page content as expected on my computer,
    > while on a colleague's pc "Access Denied (authentication_failed) Your
    > credentials could not be authenticated: "Credentials are missing.".
    > You will not be permitted access until your credentials can be
    > verified.
    > This is typically caused by an incorrect username and/or password, but
    > could also be caused by network problems."
    > appears.
    > Any idea how this comes?


    Difficult without knowing your installation. There might even be a
    configuration telling the proxy to not check credentials when connected
    from your IP while other IPs require authentication.

    Kind regards

    robert
     
    Robert Klemme, Nov 4, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. George
    Replies:
    1
    Views:
    14,363
    shijobaby
    Feb 6, 2010
  2. vidy5300
    Replies:
    0
    Views:
    886
    vidy5300
    Jun 7, 2004
  3. Dave Langley
    Replies:
    4
    Views:
    601
    Dave Langley
    Sep 4, 2003
  4. George
    Replies:
    0
    Views:
    506
    George
    Oct 30, 2003
  5. Greg
    Replies:
    4
    Views:
    317
    Steven Simpson
    Aug 16, 2012
Loading...

Share This Page