improved mock client to take url as command line and attempt to discern file extension, if one exists