Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79765
| References | <82d4292e-10de-4d47-882e-bab75777fbfe@googlegroups.com> <04b6b33f-885e-4e4a-b458-b258b34fbb90@googlegroups.com> |
|---|---|
| Date | 2014-10-27 16:34 +1100 |
| Subject | Re: 403 forbidden error |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15226.1414388091.18130.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Previous in thread | Next 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