http gateway to spark