hjmtql / redirect-checker

checking list of redirect with user-agent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redirect-checker

checking list of redirect with user-agent

Usage

  • stack build
  • stack exec checker-exe user-agent filename

Example

PC to SP

  • stack exec checker-exe iPhone sp.txt
  • sp.txt [from to]
http://example.com http://example.com/sp
http://sample.jp http://sample.jp/sp
...
  • result
    • success
    All OK!
    
    • fail
    error message
    error message
    ...
    

SP to PC

  • stack exec checker-exe Macintosh pc.txt
  • pc.txt [from to]
http://example.com/sp http://example.com
http://sample.jp/sp http://sample.jp
...
  • result: Same as PC to SP

About

checking list of redirect with user-agent

License:MIT License


Languages

Language:Haskell 100.0%