Skip to content

Commit 4703549

Browse files
committedNov 20, 2017
13
1 parent 3f98cca commit 4703549

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
 

‎13.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import xmlrpc.client
2+
3+
proxy = xmlrpc.client.ServerProxy("http://www.pythonchallenge.com/pc/phonebook.php")
4+
5+
evil = proxy.phone("Bert")
6+
7+
print(evil)

‎README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
# pythonchallenge
22
Solve Problems in http://www.pythonchallenge.com
33

4+
#### 13
5+
result: http://www.pythonchallenge.com/pc/return/italy.html
6+
```
7+
import xmlrpc.client
8+
```
9+
It's amazing that RPC tech has so much long history.
10+
11+
POST below with application/xml to server.
12+
```
13+
<?xml version="1.0"?>
14+
<methodCall>
15+
<methodName>phone</methodName>
16+
<params>
17+
<param>
18+
<value><string>Bert</string></value>
19+
</param>
20+
</params>
21+
</methodCall>
22+
```
23+
24+
Question **12** evil4.jpg tell us the evil is Bert(IE can open evil4.jpg).
25+
426
#### 12
527
result: http://www.pythonchallenge.com/pc/return/disproportional.html
628

0 commit comments

Comments
 (0)