Note that there are some explanatory texts on larger screens.

plurals
  1. POgai error at /home [Errno -2] Name or service not known
    primarykey
    data
    text
    <p>per the example in the httplib docs:</p> <pre><code>&gt;&gt;&gt; import httplib, urllib &gt;&gt;&gt; params = urllib.urlencode({'@number': 12524, '@type': 'issue', '@action': 'show'}) &gt;&gt;&gt; headers = {"Content-type": "application/x-www-form-urlencoded", ... "Accept": "text/plain"} &gt;&gt;&gt; conn = httplib.HTTPConnection("bugs.python.org") &gt;&gt;&gt; conn.request("POST", "", params, headers) &gt;&gt;&gt; response = conn.getresponse() &gt;&gt;&gt; print response.status, response.reason 302 Found &gt;&gt;&gt; data = response.read() &gt;&gt;&gt; data 'Redirecting to &lt;a href="http://bugs.python.org/issue12524"&gt;http://bugs.python.org/issue12524&lt;/a&gt;' &gt;&gt;&gt; conn.close() </code></pre> <p>my code is:</p> <pre><code>import httplib import urllib token = request.POST.get('token') if token: params = urllib.urlencode({'apiKey':'[some string]', 'token':token}) connection = httplib.HTTPSConnection('rpxnow.com/api/v2/auth_info') connection.request('POST', "", params) response = connection.getresponse() print response.read() </code></pre> <p>inspection of my local vars yeilds:</p> <p>connection: "httplib.HTTPSConnection instance at 0x8baa4ac" params: 'token=[some string]&amp;apiKey=[some string]'</p> <p>(My instructions to make this call are:</p> <p>Use the token to make the auth_info API call: URL: <a href="https://rpxnow.com/api/v2/auth_info" rel="nofollow">https://rpxnow.com/api/v2/auth_info</a> Parameters:</p> <p>apiKey [some string] token The token value you extracted above)</p> <p>but I'm getting the error mentioned in the subject line. Why?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload