0

I am using curl cli to upload a file to my shelf server, request contains header Expect: 100-continue, now curl abort by curl: (52) Empty reply from server, the correct responding seems server should 2 status codes(100 and 200):

> POST /upload HTTP/1.1
> Host: 0.0.0.0:8000
> User-Agent: curl/7.64.0
> Accept: */*
> Content-Length: 26252
> Content-Type: multipart/form-data; boundary=------------------------c9c343811f9aee88
> Expect: 100-continue
> 
* Expire in 1000 ms for 0 (transfer 0x2f156ed0)
< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Date: Thu, 22 Sep 2022 01:51:25 GMT

If client not using header Expect: to avoid this case, what should I do to implement '2-status' in shelf server end? Thanks!

Wesley Chang
  • 1,433
  • 2
  • 9
  • 10

0 Answers0