curl working for localhost