Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79766
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-10-26 22:56 -0700 |
| References | <82d4292e-10de-4d47-882e-bab75777fbfe@googlegroups.com> <04b6b33f-885e-4e4a-b458-b258b34fbb90@googlegroups.com> <mailman.15226.1414388091.18130.python-list@python.org> |
| Message-ID | <fa1ac89e-0af3-45cb-80a6-04f92d6b689a@googlegroups.com> (permalink) |
| Subject | Re: 403 forbidden error |
| From | Diya Rai <diyaraik@gmail.com> |
On Monday, October 27, 2014 11:05:04 AM UTC+5:30, Chris Angelico wrote: > On Mon, Oct 27, 2014 at 4:12 PM, Diya Rai <diyaraik@gmail.com> wrote: > > This is the part of the code which im trying to execute. We are trying to load test a web application through python script, currently checking the login part. > > > > Does it work when you log in using a web browser? If so, grab a > browser with debugging facilities (Firefox with Firebug, or Chrome > with its F12 box, or something), do the login, and have a look at > exactly what request headers are being sent. Then compare with what > your script is doing. Once you have the two side by side, you can > progressively work through it until you figure out which header makes > the difference - maybe your script isn't sending Host, or maybe you > need a cookie from a previous request, or maybe it's actually checking > the Referer and rejecting if it isn't right. Could be all sorts of > things. > > Good luck! Might be a tedious job, or might be the first thing you try. > > ChrisA Thanks a lot ChrisA It works fine while logging in through browser. Im using firefox, and have checked the headers with firebug. I tried passing all the headers and it works while passing the cookie header. My question is whether is it the correct way to try or can i write python script in such a way that it can handle it automatically. Currently for checking login page, it would be fine.But when we go for testing registration page it become tedious. I would also like to get your opinion on load testing with python script. Thanks in advance, Diya
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
403 forbidden error diyaraik@gmail.com - 2014-10-22 04:36 -0700
Re: 403 forbidden error Chris Angelico <rosuav@gmail.com> - 2014-10-22 23:43 +1100
Re: 403 forbidden error Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-10-22 08:50 -0400
Re: 403 forbidden error Diya Rai <diyaraik@gmail.com> - 2014-10-26 22:12 -0700
Re: 403 forbidden error Chris Angelico <rosuav@gmail.com> - 2014-10-27 16:34 +1100
Re: 403 forbidden error Diya Rai <diyaraik@gmail.com> - 2014-10-26 22:56 -0700
csiph-web