On Mon, Apr 18, 2011 at 9:54 AM, rubynewbie <mohamed.shaf...@gmail.com>wrote:
> The problem is not inclusion of http:// in the URL(I tried without > that). On the contrary I suspect the reason to be on how to specify > the domain in the URL. Is my way of specifying the domain right? > > C:\Documents and Settings\Users\Desktop>gem install rails -v 3.0.1 -p > http://MYDOMAIN\myUserID:MyPassword@MyProxy:Port > > > I found this on StackOverflow where there were discussing setting the http-proxy environment variable for ISA to install a gem on Windows from behind a proxy. I don't think you need the domain if your admin has specified a default one to authenticate against. However if they have not, one of the comments suggested URI encoding the backslash. So you new string would look like this: http://MYDOMAIN <http://mydomain/>%5myUserID:MyPassword@MyProxy:Port http://stackoverflow.com/questions/4418/how-do-i-update-ruby-gems-from-behind-a-proxy-isa-ntlm B. > Thanks, > > S > > On Apr 18, 6:42 pm, Bryan Crossland <bacrossl...@gmail.com> wrote: > > On Mon, Apr 18, 2011 at 4:58 AM, rubynewbie <mohamed.shaf...@gmail.com > >wrote: > > > > > > > > > I am new to Rails and have been facing difficulty while installing > > > rails. I have already installed Ruby and RubyGems on my machine by > > > downloading the packages. But when I install Rails through RubyGems > > > through a HTTP Proxy , I am thrown an error. Below is the details of > > > the command and the exception i am getting : > > > > > Command Executed : > > > C:\Documents and Settings\Users\Desktop>gem install rails -v 3.0.1 -p > > >http://mydomain\myUserID:MyPassword@MyProxy:Port > > > > > Error thrown : > > > > > ERROR: While executing gem ... (OptionParser::InvalidArgument) > > > invalid argument: -phttp://myDomain\MyUserID:MyPassword@MyProxy:80 > > > > > Please note that mydomain is the domain to which my User ID belongs. > > > The authentication is ISA i believe. > > > > > Would appreciate some help in this. > > > > > Thanks in advance > > > > > S > > > > Since you are calling an http proxy I don't think you need to specify > > http:// on the URL. I could be wrong. I don't have a proxy to test > against > > to confirm this. > > > > B. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.