Note that there are some explanatory texts on larger screens.

plurals
  1. POPassing HTTPS POST parameters for authentication
    primarykey
    data
    text
    <pre class="lang-html prettyprint-override"><code>&lt;h2 class="block-title"&gt; &lt;img class="img img-16 img-grey-down" src="https://sstatic.fotolia.com/v2010/pics/all/img/clear.gif" alt="arrow" /&gt; I already have an account &lt;span class="block-title-right"&gt;&lt;/span&gt; &lt;/h2&gt; &lt;div class="block-content"&gt; &lt;p&gt;Welcome back!&lt;/p&gt; &lt;form action="/Member/Login" method="post"&gt; &lt;div class="form login-form mini-form"&gt; &lt;div class="form-line on"&gt; &lt;label class="form-label" for="login"&gt; Login &lt;span class="form-required"&gt;*&lt;/span&gt; &lt;/label&gt; &lt;input type="text" name="login" id="login" value="" class="form-text" tabindex="1" /&gt; &lt;div class="cb"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="form-line"&gt; &lt;label class="form-label" for="password"&gt; Password &lt;span class="form-required"&gt;*&lt;/span&gt; &lt;/label&gt; &lt;input type="password" name="password" id="password" value="" class="form-text" tabindex="2" /&gt; &lt;div class="cb"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="form-line remember-form-line on"&gt; &lt;a class="form-lost" href="http://www.fotolia.com/Member/ForgotPassword"&gt; Forgot password? &lt;/a&gt; &lt;label class="form-label" for="remember_me"&gt; &lt;input type="checkbox" name="remember_me" id="remember_me" value="1" class="form-checkbox" tabindex="3" /&gt; Remember me &lt;/label&gt; &lt;div class="cb"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="form-action"&gt; &lt;input type="submit" name="signin" id="signin" value="Login " class="button button-S-L color-1-button" tabindex="4" /&gt; &lt;div class="cb"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/form&gt; &lt;/div&gt; </code></pre> <p>Hi! I am trying to post the variables login credentials but unfortunately, it is not giving me the after-login page <em>(the page that we get after successful login)</em>, presently the code is like this:</p> <pre class="lang-python prettyprint-override"><code>import os import httplib, urllib import urllib import urllib2 def file_write(filename, text_to_write): f = open(filename, 'w') f.write(text_to_write) f.close() if __name__ == "__main__": url = 'https://www.fotolia.com/Member/Login' user_agent ='Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' values = { 'login': 'XXXXXXXXXXX', 'password': 'Random123', } headers = {'User-Agent': "some-user-agent"} data = urllib.urlencode(values) req = urllib2.Request(url, data, headers) response = urllib2.urlopen(req) the_page = response.read() file_write('output.html', the_page) </code></pre> <h3>The problem:</h3> <p>The processing page does not have a file extension, let see here the form action is written as /Member/Login ? And the protocol is HTTPS, how I am supposed to handle this situation.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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