We describe a practical measurement of the curvature of the universe which, unlike current constraints, relies purely on the properties of the Robertson-Walker metric rather than any assumed model for the dynamics and content of the universe. The observable quantity is the cross-correlation between foreground mass and gravitational shear of background galaxies, which depends on the angular diameter distances d(A)(z(l)), d(A)(z(s)), and d(A)(z(s),z(l)) on the degenerate triangle formed by observer, source, and lens. In a flat universe, d(A)(z(l),z(s)) = d(A)(z(s)) - d(A)(z(l)), but in curved universes an additional term proportional to Omega(k) appears and alters the lensing observables even if d(A)(z) is fixed. We describe a method whereby weak-lensing data can be used to solve simultaneously for d(A) and the curvature. This method is completely insensitive to the equation of state of the contents of the universe, or amendments to general relativity that alter the gravitational deflection of light or the growth of structure. The curvature estimate is also independent of biases in the photometric redshift scale. This measurement is shown to be subject to a degeneracy among d(A), Omega(k), and the galaxy bias factors that may be broken by using the same imaging data to measure the angular scale of baryon acoustic oscillations. Simplified estimates of the accuracy attainable by this method indicate that ambitious weak-lensing + baryon-oscillation surveys would measure Omega k to an accuracy approximate to 0.04 f(sky)(-1/2) (sigma(ln) (z)/0.04)(1/2), where sigma(ln) (z) is the photometric redshift error. The Fisher-matrix formalism developed here is also useful for predicting bounds on curvature and other characteristics of parametric dark energy models. We forecast some representative error levels and compare ours to other analyses of the weak-lensing cross-correlation method. We find both curvature and parametric constraints to be surprisingly insensitive to the systematic shear calibration errors.