add cookie to url connection-- test