Hi Dojo,
I am trying to create an HTTP connector by following Mieke video, I can get a response for a certain page, however when the response contains "135?2289?83?476010?0?0?0?0?0?0?1?" it gets an error
Fiddler show me this
What could be wrong?
Regards
ERROR_WINHTTP_INVALID_SERVER_RESPONSE is being returned when WinHTTP (the HTTP engine that is being used by DataMiner connectors) is unable to parse the server response.
The response consists of the the actual payload and the response headers. I believe that in your case there might be something off with the latter.
Looking at what gets returned in Fiddler, the Content-Type header value contains some unexpected value. While Fiddler is still able to parse the payload, it might be that WinHTTP is struggling to do so.
Do you see the same value in that header when you're succesfully retrieving the response from the other page?
If for the other pages, the Content-Type is correctly filled in, it’s most likely that will indeed be the root cause of why the response can’t be parsed.
Which webserver software are you using to serve these pages? Typically you can configure MIME types which map a certain extension to a content type. (e.g. .html => text/html).
For example in below article is described how you can configure it in IIS: https://learn.microsoft.com/en-us/iis/configuration/system.webserver/staticcontent/mimemap
Do the other pages that you can successfully retrieve contain the same file extension?
Hi Jeroen,
For another successful page, I see common values like Content-Type: text/html, etc.
Understood it was the HTTP engine issue, do you have any tips and tricks to resolve this?
Regards,