Nexus throwing 302 error when uploading artifact from GitLab

Hi there,
We have setup Nexus RM in our dev environment on a OpenShift cluster and when we upload artifacts to it using “curl”, we get “HTTP/1.1 302 Found” error. We don’t have the SSL configured for Nexus but since it is in OpenShift, it allows us to access it with https along with a warning which says that it is not safe.
Any suggestions please to overcome or a workaround this issue.

Thank you.

Hi Musheer,
HTTP/1.1 302 Found response is not an error - it’s a redirect response with destination set in Location header. You can tell curl to follow redirects by using -L flag.

That didn’t work but I was able to put the flag “-k” and used the https endpoint to make it work.
Thank you.

thanks for the awesome information.