Put to full url with environment/hostname
Put to full url with environment/hostname

Changed api specification in latest SAM version. Additionally fixed som
formatting and error handling.

ATG-SAM/sam-collector,ATG-SAM/sam-collector,atgse/sam-collector,atgse/sam-collector