broken-link-checker icon indicating copy to clipboard operation
broken-link-checker copied to clipboard

Setting cookies?

Open volkanogretmen opened this issue 7 years ago • 3 comments

Hi guys,

I've been trying to set cookies with BLC, but didn't succeed yet. Therefore, BLC is getting "blocked" by a Cookie Wall and cannot proceed. Normally, when using ?policy=accepted behind the URL, it would automatically "accept" the cookies, but that doesn't seem to work either, because it gets redirected to a 301 Moved Permanently and doesn't proceed from there.

Also, using --header "Cookie: key=value" with wget seem to work OK. Do we have something similar to work with for BLC or do you have any other ideas how to deal with this?

Thanks!

Volkan

volkanogretmen avatar Aug 08 '18 13:08 volkanogretmen

I haven't begun to research automating cookies in this library. The main hurdle has been form automation for logins, but maybe a custom header like you suggested would prevent that need. There is currently no such option to support this, however.

stevenvachon avatar Aug 08 '18 16:08 stevenvachon

That's too bad. I think BLC would really benefit from the possibility of adding custom headers as it's quite a common feature that people tend to use. I hope it will be added soon. Thanks a lot for your response.

volkanogretmen avatar Aug 09 '18 13:08 volkanogretmen

I agree. I just can't comment on when or which version it will be implemented.

stevenvachon avatar Aug 11 '18 01:08 stevenvachon