curl returns correctly