I have a Ajax.Request in a function if i use the parameters: pars feature the query string does not get passed to the apache web log what is the best way to address this issue? The first code sample does not pass to the Apache web log but the second does but its not a fix its just a workaround. someFunction(request) { pars = "?tried_to_access="+request; url =baseUrl+"dir/somefile.php"; var myAjax = new Ajax.Request ( url, { method: ''post'', parameters: pars }); } this will work but it does not use the Parameter option. someFunction(request) { pars = "?tried_to_access="; url =baseUrl+"dir/somefile.php"+pars+request; var myAjax = new Ajax.Request ( url, { method: ''post'', }); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
seran128 wrote:> I have a Ajax.Request in a function if i use the parameters: pars > feature the query string does not get passed to the apache web log > what is the best way to address this issue? The first code sample does > not pass to the Apache web log but the second does but its not a fix > its just a workaround.I think you''re a little confused about the differences between GET and POST. The parameters for a GET request are part of the URL. When doing a POST any of the extra bits on the URL are ignored since the POST body contains those things And there''s a reason that Apache by default does not log POST parameters to the server log. It''s considered a security hole to do so. It would mean that things like usernames, passwords, credit card numbers, etc would be logged to a location that''s usually readable. Why do you need to log these params to the standard log file anyway? -- Michael Peters Developer Plus Three, LP --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
You are correct the issue is this client does not wants to use get at all. Is there a way of using jboss''s functionality to pass the URL to Apache. I do see the transaction in the jboss log file? I can write the code in jsp On Apr 11, 9:23 am, Michael Peters <mpet...-aUYv5hkjw45l57MIdRCFDg@public.gmane.org> wrote:> seran128 wrote: > > I have a Ajax.Request in a function if i use the parameters: pars > > feature the query string does not get passed to the apache web log > > what is the best way to address this issue? The first code sample does > > not pass to the Apache web log but the second does but its not a fix > > its just a workaround. > > I think you''re a little confused about the differences between GET and POST. The > parameters for a GET request are part of the URL. When doing a POST any of the > extra bits on the URL are ignored since the POST body contains those things > > And there''s a reason that Apache by default does not log POST parameters to the > server log. It''s considered a security hole to do so. It would mean that things > like usernames, passwords, credit card numbers, etc would be logged to a > location that''s usually readable. > > Why do you need to log these params to the standard log file anyway? > > -- > Michael Peters > Developer > Plus Three, LP--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---