Within a governmental projet there is a strange requirement I am trying to solve ICS.
We have to set up a complete http-request, such as get or post, with multiple headers, a content-type and so on.
But now I would like to get the request as a string or write it into a stream without sending it to a server over tcp.
Vice versa, I would like to read the response to the request from before out of a stream or a string.
Why do we have to do this? The original request has to be encrypted in a non standard-way and sent do a special server, which will decrypt the request, do is work, create a encrypted response and send this back to us.
Any ideas how we could implement this requirement?