<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 18, 2013 at 10:16 AM, Jeff James <span dir="ltr"><<a href="mailto:jeff@jeffljames.com" target="_blank">jeff@jeffljames.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Folks, I promise I'll get to the point where my questions aren't so basic, but I'm just now starting to get into Python.   So I'm using the urllib script to check to make sure our company sites are up.  As stated earlier, I have three sites which require some form of authentication in order to report back through the script that they are up and accessible.    I was given this very helpful link by Larry covering some authentication code I could implement into the script.  <a href="http://docs.python.org/2.7/howto/urllib2.html#id6" style="font-family:arial,sans-serif;font-size:12.8px" target="_blank">http://docs.python.org/2.7/howto/urllib2.html#id6</a> .    I can make out the logic behind the script, but because I'm still new to Python, I'm having a hard time trying to figure out how to implement it into my existing urllib script.  I'm assuming I need to integrate the code somehow for each url requiring authentication in that each site requires different creds.......  Other than this little speedbump this script is pretty slick and has already scored a few points with my manager.  ;o)     Thanks</div>

<br>--<br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br></div><div class="gmail_extra">You might also want to check here:  <a href="http://www.python-requests.org/en/latest/user/authentication/">http://www.python-requests.org/en/latest/user/authentication/</a><br>
<br></div><div class="gmail_extra">The requests module might be easier to understand.<br clear="all"></div><div class="gmail_extra"><br>-- <br><div dir="ltr"><div>Joel Goldstick<br></div><a href="http://joelgoldstick.com" target="_blank">http://joelgoldstick.com</a><br>
</div>
</div></div>