Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (14 loc) · 1.16 KB

Debug-HTTP-Communication.md

File metadata and controls

22 lines (14 loc) · 1.16 KB

Debugging HTTP Communication

Various features of dotNetRDF rely on HTTP communication to provide functionality, most of the time this works fine but occasionally you may encounter errors. dotNetRDF provides some helpful functionality to help you debug these errors.

To get basic traces of HTTP requests and responses printed to the Console you can enable the global static option HttpDebugging found in the Options class e.g.

Options.HttpDebugging = true;

Full Response Traces

While most of the time the above will be sufficient to diagnose a problem sometimes you may need to see the full HTTP response in order to see exactly what error messages the remote server is responding with.

To get full response traces for HTTP responses you must have enabled the HttpDebugging property and then also enable the HttpFullDebugging property e.g.

Options.HttpDebugging = true;
Options.HttpFullDebugging = true;

Note: When full debugging is used the HTTP response stream is consumed, this may cause dotNetRDF to throw different errors to those normally seen because the stream the code expects has already been consumed.