Let $q = 2,3$ and $f(X,Y)$, $g(X,Y)$, $h(X)$ be polynomials with
integer coefficients. In this paper we deal with the curve
$f(X,Y)^q = h(X)g(X,Y)$, and we show that under some favourable
conditions it is possible to determine all of its rational points.