https://github.com/tsamaya/spring-iplookup
https://github.com/tsamaya/spring-iplookup
java spring-boot springframework
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tsamaya/spring-iplookup
- Owner: tsamaya
- Created: 2017-11-08T18:16:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-22T06:22:59.000Z (over 8 years ago)
- Last Synced: 2025-02-26T12:17:14.955Z (over 1 year ago)
- Topics: java, spring-boot, springframework
- Language: Java
- Size: 1.52 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring service : IP lookup
use the gradle wrapper to build or your own gradle installation
`$./gradlew bootRun` will run the project with the wrapper
tests :
$ curl "http://localhost:8080/iplookup" --header "X-Forwarded-For: 128.101.101.101" -i
$ curl "http://localhost:8080/iplookup" --header "X-Forwarded-For: 101.101.101.101, 128.101.101.101" -i
$ curl "http://localhost:8080/iplookup?ip=101.101.101.101" -i
$ curl "http://localhost:8080/iplookup"
to be continued...