# Curl upload request issue

**URL:** <https://community.sonatype.com/t/curl-upload-request-issue/7725>\
**Category:** Sonatype Nexus Repository\
**Tags:** upload\
**Created:** [November 25, 2021, 2:13pm UTC](https://community.sonatype.com/t/curl-upload-request-issue/7725 "2021-11-25T14:13:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![zoroglucihat](https://avatars.discourse-cdn.com/v4/letter/z/898d66/32.png) [@zoroglucihat](https://community.sonatype.com/u/zoroglucihat)\
**Post date:** [November 25, 2021, 2:13pm UTC](https://community.sonatype.com/t/curl-upload-request-issue/7725/1 "2021-11-25T14:13:11Z")

</div>

[root@localhost pamuser]# curl -v -u admin:admin --upload-file ${FILENAME} ${DESTINATION}

- About to connect() to 1.1.1.1 port 8081 (#0)
- Trying 1.1.1.1…
- Connected to 1.1.1.1 (1.1.1.1) port 8081 (#0)
- Server auth using Basic with user ‘admin’

> PUT /repository/3.0.0-core/389-ds-base-devel-1.3.10.2-12.el7\_9.x86\_64.rpm HTTP/1.1  
> Authorization: Basic YWRtaW46a3IxMGlwc2xh  
> User-Agent: curl/7.29.0  
> Host: 10.20.42.52:8081  
> Accept: _/_  
> Content-Length: 1925  
> Expect: 100-continue

\< HTTP/1.1 100 Continue

- We are completely uploaded and fine  
\< HTTP/1.1 400 Invalid RPM: 389-ds-base-devel-1.3.10.2-12.el7\_9.x86\_64.rpm  
\< Server: Nexus/3.36.0-01 (OSS)  
\< X-Content-Type-Options: nosniff  
\< Content-Security-Policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation  
\< X-XSS-Protection: 1; mode=block  
\< Content-Length: 0  
\<
- Connection #0 to host 1.1.1.1 left intact

---

_[View the full topic](https://community.sonatype.com/t/curl-upload-request-issue/7725)._
