[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: OpenEdge.net.pl handling of "HTTP/1.1 :00 :00"

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
As Bronco notes, the HTTP spec indicates an integer should be used. The HTTP client has the same assumption, as you can see in the IHttpResponse ( github.com/.../IHttpResponse.cls) interface's StatusCode property. While servers (and clients) can be extremely lax about implementing the spec, I'm not sure there there should be a fix for this (or what). We could default to 200/OK but if there's any (other) junk in the response for any reason, would you want a signal that everything is OK? We could default to 000/ and parse the message as best as we can. I'm more inclined to the latter but am still not convinced. Appropriate status codes are a fundamental part of the HTTP spec.

Continue reading...
 
Status
Not open for further replies.
Back
Top