A site is available but it always responses "Internal Server Error"
<p>The code looks like: </p>

<pre><code>url ="http://www.example.com" 
for a in range(0,10):
    opener = urllib2.build_opener()
    urllib2.install_opener(opener)
    postdata ="info=123456"+str(a)
    urllib2.urlopen(url, postdata)
</code></pre>

<p>which just post some data to a specific URL(e.g. <a href="http://www.example.com" rel="nofollow">http://www.example.com</a>), however, I always get the error message,</p>

<pre><code>Traceback (most recent call last):
  File "test.py", line 9, in &lt;module&gt;
    urllib2.urlopen(url, postdata)
  File "c:\Python26\lib\urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "c:\Python26\lib\urllib2.py", line 397, in open
    response = meth(req, response)
  File "c:\Python26\lib\urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "c:\Python26\lib\urllib2.py", line 435, in error
    return self._call_chain(*args)
  File "c:\Python26\lib\urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "c:\Python26\lib\urllib2.py", line 518, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 500: Internal Server Error
</code></pre>

<p>I am sure the site is working, so how can I fix the problem? Any help would be greatly appreciated.</p>
