Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8508277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:07:04+00:00 2026-06-11T03:07:04+00:00

When I try to curl using the -T option, I get an empty reply:

  • 0

When I try to curl using the -T option, I get an empty reply:

$ curl --digest -u me:pwd -H "Content-Type:application/xml" -T test.xml http://localhost:8085/
curl: (52) Empty reply from server

Anyone know the incantation? The server works fine when connecting to it from the WebDAV client built into MacOSX.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:07:05+00:00Added an answer on June 11, 2026 at 3:07 am

    By default curl sends Expect: Continue, but unfortunately java web containers don’t play nicely with the Expect header. The simplest answer is to instruct curl not to send that header:

    curl --digest -u a2 -H "Content-Type:application/xml" -H "Expect:" -T TestPBE-workspace.xml http://localhost:8080/users/a2/files2/
    

    The better solution is to make expect:continue work, but from the research i’ve done it appears that depends on what web container you’re using.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I type http://rest.example.com/account/get-balance/27e3xxx/7vvU4c95trfxxxx in browser and hit enter, I get following XML response.
I have been using curl to get an xml response from a payment gateway
When I try to use curl command in my shell script I get the
I'm trying to get twitter update_profile_image to work using OAuth. I was using curl
This site doesn't return anything when I try to parse it using CURL. Here
I'm using cURL to connect to a SSL server to recive and send XML-files
I am using this code to try to get json data from many json
I'm using mingw. I downloaded OpenSSl and zlib from http://curl.haxx.se/download.html links for Windows. Change
Im trying to log into Yammer using cURL. For some reason I cant get
When I try to use curl or file_get_contents to read something like http://example.com/python/json/ from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.