CardBoardFish
You are here: CardBoardFish > HTTPHLR > HowDoIMakeAnHTTPHLRQuery

How do I make an HTTP HLR query?

You can make an HTTP HLR query by making a standard URL encoded HTTP GET request to http://hlrlookup.cardboardfish.com/HLRQuery with the necessary parameters. To learn more about URL encoding please click here.

Example request with results to default configuration
This example will query the MSISDN 44789735533 using username user1 and password pass1 with the results going to the default RETURNTYPE value set up::

http://hlrlookup.cardboardfish.com/HLRQuery?USERNAME=user1&PASSWORD=pass1&MSISDN=44789735533

Response: OK 4587216

Example request with results to HTTP return address
This example will query the same MSISDN but this time with the results being sent to http://www.mysite.com.

http://hlrlookup.cardboardfish.com/HLRQuery?USERNAME=user1&PASSWORD=pass1&MSISDN=44789735533&RETURNTYPE=h&RETURNADDRESS=http://www.mysite.com

Response: OK 4587217

Example request with results to e-mail address
This final example will query the same MSISDN again but with the results being sent to an email address set to me@mysite.com.

!http://hlrlookup.cardboardfish.com/HLRQuery?USERNAME=user1&PASSWORD=pass1&MSISDN=44789735533&RETURNTYPE=e&RETURNADDRESS=me%40mysite.com

Response: OK 4587218