In ArcGIS Pro, convert the curve feature layer to a layer with z-values enabled using the Feature Class To Feature Class tool and publish it to ArcGIS Online. The curves are displayed as expected. Refer to the documentation for more information: ArcGIS Pro: Feature Class To Feature Class (Conversion).