403 forbidden error
rosuav at gmail.com
Mon Oct 27 06:34:41 CET 2014
On Mon, Oct 27, 2014 at 4:12 PM, Diya Rai <diyaraik at 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
Good luck! Might be a tedious job, or might be the first thing you try.
More information about the Python-list