code reindex as curl