Not logged in. · Lost password · Register

All posts by ishayahu (1)

topic: http code on authorisation error  in the forum: General Help and Support Development
ishayahu #1
Member since Dec 2018 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: http code on authorisation error
I'm developing now a system to backup and testing backup of DokuWiki. For that, I'm running spider scrapy to get content of all pages and compute it's md5s. And the question is: how I can check authorization error?
In scrapy tutorial it is something like that:

# check login succeed before going on
            if b"authentication failed" in response.body:
                self.logger.error("Login failed")

but checking for that text is a bad idea: it could be in DokuWiki page. So better way is sending the corresponding HTTP code. Can I setup wiki to send that code instead of 200?
Close Smaller – Larger + Reply to this post:
Special characters:
Special queries
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-02-17, 07:34:35 (UTC +01:00)