japi: fix curl syscalls