The HTTP response and how it relates to System.Net.HttpListener
This is part 3 of the sequel to “How to build a web based user interaction layer in C#“. In this post, I will discuss how to send a HTTP response back to the client.
This is part 3 of the sequel to “How to build a web based user interaction layer in C#“. In this post, I will discuss how to send a HTTP response back to the client.
This is part 4 of the sequel to “How to build a web based user interaction layer in C#“. In this post, I will describe a mechanism that we can use to locate resources to process HTTP requests in C#.
Previously, I had written two posts on how to upload files to a web server, one for the case when the size of the HTTP request is small, and the other for the case when the size of the HTTP request is large. How about the downloading of files from a web server? In this post, I shall discuss how to download files from a HTTP server via the System.Net.HttpWebRequest class.
My previous post described a method of sending a file and some data via HTTP multipart post by constructing the HTTP request with the System.IO.MemoryStream class before writing the contents to the System.Net.HttpWebRequest class. This method of sending our HTTP request will work only if we can restrict the total size of our file and data.
My previous post on sending files via HTTP post did not discuss handling of web server communication feedback. Hence, I will do so in this post.
It is important that a client is able to know if a HTTP request had been successfully processed by the server so that rectification works can be performed.
A few weeks back, I wrote some logic to send a file and a from a windows client over to a Java server endpoint. There are a few ways to do that: via application protocols like FTP and HTTP or even implementing a custom protocol using TCP/IP. Since the Java server was already serving HTTP requests and that HTTP requests can usually get through firewalls quite easily, I chose the HTTP protocol.
In my recent attempt to install Apache HTTP Server, MySQL database server and PHP on Windows Server 2008, I spent quite some time figuring out why my Apache HTTP Server couldn’t start. In this post, I will share how I had managed to fix my error.
© 2010 - 2023 Techcoil.com: All Rights Reserved / Disclaimer
Follow us