Hello, I am trying to access a REST controller from a Native C# Windows Mobile client and I am having some problems since I am using the restful_authentication plug in. I decided to test the availability of the resources with curl before trying with windows mobile. I want to access this resource http://friendforcaster.com/users/1/people.xml When I try to I get the obvious HTTP Basic: Access denied. So I though I would try curl -X GET --basic -u user_name:password http://friendforcaster.com/users/1/people.xml But had the same problem... I was thinking that maybe I have to somehow remotely add a cookie or create a session but I don''t know how to do this. Can someone help? Thank you very much, Kent -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Kent Fenwick
2008-Jul-11 18:36 UTC
Re: curling REST controllers behind restful_authentication
Got it! It was a problem with Apache! Thank you Kent Kent Fenwick wrote:> Hello, > > I am trying to access a REST controller from a Native C# Windows Mobile > client and I am having some problems since I am using the > restful_authentication plug in. > > I decided to test the availability of the resources with curl before > trying with windows mobile. > > I want to access this resource > > http://friendforcaster.com/users/1/people.xml > > When I try to I get the obvious > > HTTP Basic: Access denied. > > So I though I would try > > curl -X GET --basic -u user_name:password > http://friendforcaster.com/users/1/people.xml > > But had the same problem... > > I was thinking that maybe I have to somehow remotely add a cookie or > create a session but I don''t know how to do this. > > Can someone help? > > Thank you very much, > > Kent-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jul 11, 1:36 pm, Kent Fenwick <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Got it! > > It was a problem with Apache! > > Thank you > > KentCan you elaborate? I had seen this before in one of my projects and I''m curious to know how you solved it. Jeff --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Kent Fenwick
2008-Jul-11 19:04 UTC
Re: curling REST controllers behind restful_authentication
Hi Jeff, I tried it out on my local copy and it worked really well. I still can''t access it remotely but that has something to do with the host I am using. I am using hostingrails and I have opened up a ticket with them. Chances are it has something to do with the FCI or Apache config files. On my dev machine I switched from Apache to nginx and everything worked very well. Unless you are using passenger I would suggest not using Apache, but that''s just my opinion. Hope this helps, if my host gives me any information I will be happy to post it. Thanks Jeff, Kent Jeff Cohen wrote:> On Jul 11, 1:36�pm, Kent Fenwick <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> Got it! >> >> It was a problem with Apache! >> >> Thank you >> >> Kent > > Can you elaborate? I had seen this before in one of my projects and > I''m curious to know how you solved it. > > Jeff-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jul 11, 2:04 pm, Kent Fenwick <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi Jeff, > > I tried it out on my local copy and it worked really well. > > I still can''t access it remotely but that has something to do with the > host I am using. > > I am using hostingrails and I have opened up a ticket with them. > Chances are it has something to do with the FCI or Apache config files. > > On my dev machine I switched from Apache to nginx and everything worked > very well. Unless you are using passenger I would suggest not using > Apache, but that''s just my opinion. > > Hope this helps, if my host gives me any information I will be happy to > post it.Interesting.. thanks a lot for the update. Jeff --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---