Python · HTTP & the Web

By default a client can't introspect a Python XML-RPC server's methods. How does the server opt in, and what does that expose?

Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.

Get it on App StoreGet it on Google Play

This is one card from the KnowCard library — thousands more across SAP, Linux, Python and more. In the app you get the answer, AI explanations, and cards that come back right before you would forget them. Free to start on iOS, Android or the web.

More in HTTP & the Web

You call urllib.request.urlopen(url) for a page that returns HTTP 404. What happens?
What is the type of the value returned by reading a urlopen response? ``` import urllib.request r = urllib.request.urlopen(url) data = r.read() ```
You want to GET https://api.example.com/search with q="hello world" and lang="en". How should you build the URL?
Why is requests.get(url, params={...}) preferred over manually pasting the query string into the URL?
What do requests' r.content and r.text return, and when do you use each?
A web API returns JSON. What's the right way to get a Python dict from a urllib response?

Start learning today

Free to start — download the app or use it in your browser.

Get it on App StoreGet it on Google Play