How would I structure a curl command to have it recognized by a URL shortener? When I run the command below using a url shortened from either bit.ly or goo.gl, the request is not recognized by either service.
curl -L "http://bit.ly/1efYimy"
How would I structure a curl command to have it recognized by a URL shortener? When I run the command below using a url shortened from either bit.ly or goo.gl, the request is not recognized by either service.
curl -L "http://bit.ly/1efYimy"
Most URL shorteners do various forms of filtering and normalization to exclude "bot" traffic from the statics they report.
If you are making a low volume of requests, you can probably get your requests counted by changing the User Agent reported by curl.
curl -LA "MyApp 1.0" "http://bit.ly/1efYimy"
or
curl -L --user-agent "MyApp 1.0" "http://bit.ly/1efYimy"
Please be a good web citizen and pick a user agent that describes what you are doing and has some reference to how you can be found/contacted (e.g. "MyCo Bot" where doing a Google search for MyCo will bring somebody to your company).
Also note that while user agent based filtering is one form of bot detection that is done, there are more sophisticated measures that various services will use to detect bot-like behavior. Accordingly, if you end up making a large volume of requests your metrics may stop incrementing or you may even get blocked/rate limited.