Fixed api request to use ssl; the lack of which was previously causing premature end of file error due to connection closing
Added view spec