question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow easier access to site on a http:// URL

See original GitHub issue

Currently, the URL scheme used to access the MediaWiki instance is hardcoded to https in the raw_call function of client.py. This makes it impossible to use mwclient wit a wiki which is hosted under an unencrypted http:// URL.

This should be made configurable (either by adding a scheme parameter to the Site constructor or by allowing a full URL instead of just the hostname there).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
danmichaelocommented, Jan 23, 2019

Wouldn’t a specific parameter be a neater way to achieve this, instead of relying on a specific, opaque data structure and the custom code to handle it?

I’ve only kept it for backwards compatibility, but I wouldn’t mind if we introduced a new parameter and deprecated the old syntax and then removed it with the next major release or something.

1reaction
waldyriouscommented, Jan 24, 2019

@danmichaelo shall we reopen #213 then (and this issue as well), provided that it also removes the special handling of the host parameter in the code I quoted above?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow or block access to websites - Google Support
As a Chrome Enterprise admin you can block and allow URLs so that users can only visit certain websites. Restricting users' internet access...
Read more >
Enabling HTTPS on your servers - web.dev
Enabling HTTPS on your servers is critical to securing your webpages.
Read more >
Cross-Origin Resource Sharing (CORS) - MDN Web Docs
This cross-origin sharing standard can enable cross-origin HTTP ... cross-site XMLHttpRequest and fetch ) can submit simple requests to any ...
Read more >
Restricting access to specific URLs
To configure an URL access rule ; 1. Go to Web Protection > Access > URL Access and select the URL Access Rule...
Read more >
Good Practices for Capability URLs - W3C
Capability URLs grant access to a resource to anyone who has the URL. There are times when this is useful, for example one-shot...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found