Code snippet for sync-GET httprequest