How to create a site which dumps whatever HTML is sent to it?

Posted on 2007-10-03
Last Modified: 2013-11-19
There is a site ( which works with some demo code that came with a .NET control library I purchased. It harmlessly dumps whatever is sent to it. I am a net newbie and could use a pointer to some kind of tutorial or book that might explain how it works. I need to create something similar with ASP.NET.
Question by:tmostad
    LVL 7

    Expert Comment

    What you are looking at is a dump of the HTTP headers. They are like a set of instruction or requests the web browser sends to the web server. The web server looks at the headers and uses that to decide what to send back to the web browser.

    Its really easy to do this in

    <%@ Page Language="C#" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

    <script runat="server">

        protected void Page_Load(object sender, EventArgs e)
            Label1.Text = Request.ServerVariables["ALL_RAW"].Replace("\n","<br>");

    <html xmlns="" >
    <head runat="server">
        <title>Untitled Page</title>
        <form id="form1" runat="server">
            <asp:Label ID="Label1" runat="server" Text="Label"/>

    You can see this page at
    LVL 1

    Author Comment

    Thanks Mike. Your code does part of what this other site is doing. The library is a PDF Acroform library and the dump.php I think is parsing the attached Acroform and displaying it. Your code reports:

    Cache-Control: no-cache
    Connection: Keep-Alive
    Content-Length: 215
    Content-Type: application/x-www-form-urlencoded
    Accept: */*
    User-Agent: AcroForms
    Acrobat-Version: 8.1.0

    I don't need to parse the form; saving it to some path on the server would be sufficient. Is it some kind of attachment or what? Or is it even possible to tell?
    LVL 8

    Accepted Solution

    PDF forms don't post the entire PDF to the website. they post the form fields as if you had created a simple HTML form using POST (

    you can then use these fields to either save the data in a database, or generate an FDF/XFDF file that you can save to your website for online viewing. if you want to create an FDF file, try this tutorial:


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
    Read about why website design really matters in today's demanding market.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now