We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8119b19 + 53a2051 commit c85bb71Copy full SHA for c85bb71
appengine/urlfetch/main.py
@@ -18,13 +18,16 @@
18
"""
19
20
import logging
21
-# [START url-imports]
22
import urllib
+
23
+# [START urllib2-imports]
24
import urllib2
25
+# [END urllib2-imports]
26
27
+# [START urlfetch-imports]
28
from google.appengine.api import urlfetch
29
+# [END urlfetch-imports]
30
import webapp2
-# [END url-imports]
31
32
33
class UrlLibFetchHandler(webapp2.RequestHandler):
@@ -46,7 +49,7 @@ class UrlFetchHandler(webapp2.RequestHandler):
46
49
47
50
def get(self):
48
51
# [START urlfetch-get]
- url = "http://www.googleadsfasdf.com/"
52
+ url = "http://www.google.com/"
53
try:
54
result = urlfetch.fetch(url)
55
if result.status_code == 200:
0 commit comments