Skip to content

Instantly share code, notes, and snippets.

@rtomaszewski
Last active December 31, 2015 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtomaszewski/8032710 to your computer and use it in GitHub Desktop.
Save rtomaszewski/8032710 to your computer and use it in GitHub Desktop.
cd ~/mongo-course/week1/homework#
# python hw1-2.21394489c9ad.py
The answer to Homework One, Problem 2 is 1815
# python hw1-3.e594fc84d4ac.py
Bottle v0.11.6 server starting up (using WSGIRefServer())...
Listening on http://localhost:8080/
Hit Ctrl-C to quit.
ip6-localhost - - [19/Dec/2013 01:14:47] "GET /hw1/2 HTTP/1.1" 200 2
ip6-localhost - - [19/Dec/2013 01:14:49] "GET /hw1/3 HTTP/1.1" 200 2
ip6-localhost - - [19/Dec/2013 01:14:51] "GET /hw1/4 HTTP/1.1" 200 2
ip6-localhost - - [19/Dec/2013 01:14:52] "GET /hw1/5 HTTP/1.1" 200 2
ip6-localhost - - [19/Dec/2013 01:14:55] "GET /hw1/50 HTTP/1.1" 200 3
# from another terminal
root@mongo2:~/hw1# curl -v 127.1:8080/hw1/50
* About to connect() to 127.1 port 8080 (#0)
* Trying 127.0.0.1... connected
> GET /hw1/50 HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 127.1:8080
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Thu, 19 Dec 2013 01:14:55 GMT
< Server: WSGIServer/0.1 Python/2.7.3
< Content-Length: 3
< Content-Type: text/html; charset=UTF-8
<
53
* Closing connection #0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment