Oil prices rise, head for weekly gain amid cautious hopes for recovery