417 error for post big data solution

   The purpose of designing the 100 (Continue) HTTP status code in the HTTP/1.1 protocol is that before the client sends the Request Message, the HTTP/1.1 protocol allows the client to determine whether the server is willing to accept the message body sent by the client (based on Request Headers). ).
    That is,  Client and Server allow both parties to "handshake" before Post (larger) data, and if there is a match, Client starts to send (larger) data .
    The reason for this is that if the client sends the request data directly, but the server rejects the request, this behavior will bring a lot of resource overhead.
solve:
Modify the CURLOPT item in hessian:
CURLOPT_HTTPHEADER => array("Content-Type: application/binary") 
change to
CURLOPT_HTTPHEADER => array("Content-Type: application/binary","Expect:") 
 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326451589&siteId=291194637