http headers - RestTemplate, PUT method, and Expect: 100-CONTINUE -
http headers - RestTemplate, PUT method, and Expect: 100-CONTINUE -
i'm newbie resttemplate , how backed apache http classes. @ first thought needed manually create http headers expect: 100 go on in order start implementing set method using feature. in case server having dialogue responded correctly application never saw 100-continue response because 100-continue beingness ignored, such: [org.apache.commons.httpclient.httpmethodbase] - <'discarding unexpected response: http/1.1 100 continue>. wireshark confirms got 100 continue.
i understand after doing reading somewhere must set default behavior of set method utilize expect: 100-continue header...and i'm starting think in springsource authored class. far can tell relevant apache abstract class is: org.apache.commons.httpclient.methods.expectcontinuemethod, has sublclass called org.apache.commons.httpclient.methods.putmethod, , in event has setter using expect: 100-continue in set requests.
so leads 2 questions now, 1.
how can set feature can utilize 100-continue in dialogues servers? i've been searching within springsource documentation , see httpclientparams set , how commonsclienthttprequestfactory, i'm @ loss of or how set utilize of expectcontinuemethod when resttemplate acts on set request. i'm starting think not possible within springsource class or package...i'm getting feeling resttemplate high level, speak.
perhaps have import many apache packages instantiate them , specify utilize of expectcontinue feature, , somehow create sure resttemplate , other springsource classes utilize them (if possible or makes sense). today that's on head have vague notion of needs done. if true, mean application must take either utilize 100-continue header set requests forever? cannot have set requests utilize , others not depending on, say, size of body? terrible.
even pointer in right direction appreciated.
-paul
http-headers expect continue springsource resttemplate
Comments
Post a Comment