fix timestamp to output correct microseconds
add curlopt constant