Commit 2a889572 authored by insert's avatar insert 🎺

Fix small mistake

parent eb5cb44c
......@@ -17,10 +17,10 @@ r = urllib2.urlopen(urllib2.Request(url)).read();
```python
import urllib2
body = "key=value&user=me&pass=1234"; # sample POST body
payload = "key=value&user=me&pass=1234"; # sample POST body
c = urllib2.Request(url, body=body);
r = urllib2.urlopen().read();
c = urllib2.Request(url, data=payload);
r = urllib2.urlopen(c).read();
# r is the response
```
......@@ -38,7 +38,7 @@ headers = {
};
c = urllib2.Request(url, headers=headers);
r = urllib2.urlopen().read();
r = urllib2.urlopen(c).read();
# r is the response
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment