Capture http post request

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Clif

    #1

    Capture http post request

    Hi,
    I would like to find out exactly what is being sent when a web page uses the
    post request method. My thought was to use the webbrowser control together
    with the HTTPWebRequest class, but am having trouble tying the two together.
    Any ideas?

    Thanks,
    Clif


  • Steven Cheng[MSFT]

    #2
    RE: Capture http post request

    Hi Clif,

    Welcome to MSDN newsgroup.
    From your description, you're wantting to capture the HTTP request/respons
    's content sent between client webbrowser and the webserver.... , yes?

    Generally, for diagnostics or tracing purpose, we can consider using some
    protocol tracing tools. And the Trace Utility (in SOAP Toolkit 3.0) or the
    TcpTrace (.net version...) are good and simple for general tracing of HTTP/
    TCP message....

    You can get them through the following link:

    #SOAP Toolkit 3.0(just use the Trace Utility in it....)
    http://www.microsoft.com/downloads/d...0dd-ceec-4088-
    9753-86f052ec8450&di splaylang=en

    #Tcp Trace



    Hope helps. Thanks,

    Steven Cheng
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)







    --------------------
    | Reply-To: "Clif" <MicroPutz@comm unity.nospam>
    | From: "Clif" <MicroPutz@comm unity.nospam>
    | Subject: Capture http post request
    | Date: Sun, 27 Nov 2005 10:12:49 -0500
    | Lines: 10
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
    | X-RFC2646: Format=Flowed; Original
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
    | Message-ID: <eeKMJU28FHA.12 76@TK2MSFTNGP09 .phx.gbl>
    | Newsgroups: microsoft.publi c.dotnet.langua ges.vb
    | NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bel lsouth.net
    65.12.165.118
    | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
    | Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:305927
    | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
    |
    | Hi,
    | I would like to find out exactly what is being sent when a web page uses
    the
    | post request method. My thought was to use the webbrowser control
    together
    | with the HTTPWebRequest class, but am having trouble tying the two
    together.
    | Any ideas?
    |
    | Thanks,
    | Clif
    |
    |
    |

    Comment

    • William LaMartin

      #3
      Re: Capture http post request

      Unless you want to write the code yourself for some application, you can
      download Fiddler from http://www.fiddlertool.com/fiddler/ and find out what
      you want.

      If you want to do it yourself, I think the approach might look at how you
      would capture Internet Explorer's history. I think you would use the windows
      API calls like FindFirstUrlCac heEntry from the wininet.dll library.

      Based on some code I found via Google, when I was programming in Delphi I
      managed to get such an application running. I tried in VB.net once but ran
      into some problems and never finished the project.

      Do a Google search to see if you can find something.


      "Clif" <MicroPutz@comm unity.nospam> wrote in message
      news:eeKMJU28FH A.1276@TK2MSFTN GP09.phx.gbl...[color=blue]
      > Hi,
      > I would like to find out exactly what is being sent when a web page uses
      > the post request method. My thought was to use the webbrowser control
      > together with the HTTPWebRequest class, but am having trouble tying the
      > two together. Any ideas?
      >
      > Thanks,
      > Clif
      >[/color]


      Comment

      • Larry Lard

        #4
        Re: Capture http post request


        Clif wrote:[color=blue]
        > Hi,
        > I would like to find out exactly what is being sent when a web page uses the
        > post request method. My thought was to use the webbrowser control together
        > with the HTTPWebRequest class, but am having trouble tying the two together.
        > Any ideas?[/color]

        HTTPLook and IEWatch are both useful tools for this kind of thing.

        --
        Larry Lard
        Replies to group please

        Comment

        • Clif

          #5
          Re: Capture http post request

          Many thanks to all!


          "Steven Cheng[MSFT]" <stcheng@online .microsoft.com> wrote in message
          news:zykmu%2378 FHA.832@TK2MSFT NGXA02.phx.gbl. ..[color=blue]
          > Hi Clif,
          >
          > Welcome to MSDN newsgroup.
          > From your description, you're wantting to capture the HTTP request/respons
          > 's content sent between client webbrowser and the webserver.... , yes?
          >
          > Generally, for diagnostics or tracing purpose, we can consider using some
          > protocol tracing tools. And the Trace Utility (in SOAP Toolkit 3.0) or the
          > TcpTrace (.net version...) are good and simple for general tracing of
          > HTTP/
          > TCP message....
          >
          > You can get them through the following link:
          >
          > #SOAP Toolkit 3.0(just use the Trace Utility in it....)
          > http://www.microsoft.com/downloads/d...0dd-ceec-4088-
          > 9753-86f052ec8450&di splaylang=en
          >
          > #Tcp Trace
          > http://www.pocketsoap.com/tcptrace/
          > http://jarok.cs.ohiou.edu/software/t.../download.html
          >
          > Hope helps. Thanks,
          >
          > Steven Cheng
          > Microsoft Online Support
          >
          > Get Secure! www.microsoft.com/security
          > (This posting is provided "AS IS", with no warranties, and confers no
          > rights.)
          >
          >
          >
          >
          >
          >
          >
          > --------------------
          > | Reply-To: "Clif" <MicroPutz@comm unity.nospam>
          > | From: "Clif" <MicroPutz@comm unity.nospam>
          > | Subject: Capture http post request
          > | Date: Sun, 27 Nov 2005 10:12:49 -0500
          > | Lines: 10
          > | X-Priority: 3
          > | X-MSMail-Priority: Normal
          > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
          > | X-RFC2646: Format=Flowed; Original
          > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
          > | Message-ID: <eeKMJU28FHA.12 76@TK2MSFTNGP09 .phx.gbl>
          > | Newsgroups: microsoft.publi c.dotnet.langua ges.vb
          > | NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bel lsouth.net
          > 65.12.165.118
          > | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
          > | Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:305927
          > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
          > |
          > | Hi,
          > | I would like to find out exactly what is being sent when a web page uses
          > the
          > | post request method. My thought was to use the webbrowser control
          > together
          > | with the HTTPWebRequest class, but am having trouble tying the two
          > together.
          > | Any ideas?
          > |
          > | Thanks,
          > | Clif
          > |
          > |
          > |
          >[/color]


          Comment

          • Steven Cheng[MSFT]

            #6
            Re: Capture http post request

            You're Welcome Clif,

            Regards,

            Steven Cheng
            Microsoft Online Support

            Get Secure! www.microsoft.com/security
            (This posting is provided "AS IS", with no warranties, and confers no
            rights.)
            --------------------
            | Reply-To: "Clif" <MicroPutz@comm unity.nospam>
            | From: "Clif" <MicroPutz@comm unity.nospam>
            | References: <eeKMJU28FHA.12 76@TK2MSFTNGP09 .phx.gbl>
            <zykmu#78FHA.83 2@TK2MSFTNGXA02 .phx.gbl>
            | Subject: Re: Capture http post request
            | Date: Mon, 28 Nov 2005 16:28:31 -0500
            | Lines: 78
            | X-Priority: 3
            | X-MSMail-Priority: Normal
            | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
            | X-RFC2646: Format=Flowed; Original
            | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
            | Message-ID: <eba5xKG9FHA.63 2@TK2MSFTNGP10. phx.gbl>
            | Newsgroups: microsoft.publi c.dotnet.langua ges.vb
            | NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bel lsouth.net
            65.12.165.118
            | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
            | Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:306115
            | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
            |
            | Many thanks to all!
            |
            |
            | "Steven Cheng[MSFT]" <stcheng@online .microsoft.com> wrote in message
            | news:zykmu%2378 FHA.832@TK2MSFT NGXA02.phx.gbl. ..
            | > Hi Clif,
            | >
            | > Welcome to MSDN newsgroup.
            | > From your description, you're wantting to capture the HTTP
            request/respons
            | > 's content sent between client webbrowser and the webserver.... , yes?
            | >
            | > Generally, for diagnostics or tracing purpose, we can consider using
            some
            | > protocol tracing tools. And the Trace Utility (in SOAP Toolkit 3.0) or
            the
            | > TcpTrace (.net version...) are good and simple for general tracing of
            | > HTTP/
            | > TCP message....
            | >
            | > You can get them through the following link:
            | >
            | > #SOAP Toolkit 3.0(just use the Trace Utility in it....)
            | >
            http://www.microsoft.com/downloads/d...0dd-ceec-4088-
            | > 9753-86f052ec8450&di splaylang=en
            | >
            | > #Tcp Trace
            | > http://www.pocketsoap.com/tcptrace/
            | > http://jarok.cs.ohiou.edu/software/t.../download.html
            | >
            | > Hope helps. Thanks,
            | >
            | > Steven Cheng
            | > Microsoft Online Support
            | >
            | > Get Secure! www.microsoft.com/security
            | > (This posting is provided "AS IS", with no warranties, and confers no
            | > rights.)
            | >
            | >
            | >
            | >
            | >
            | >
            | >
            | > --------------------
            | > | Reply-To: "Clif" <MicroPutz@comm unity.nospam>
            | > | From: "Clif" <MicroPutz@comm unity.nospam>
            | > | Subject: Capture http post request
            | > | Date: Sun, 27 Nov 2005 10:12:49 -0500
            | > | Lines: 10
            | > | X-Priority: 3
            | > | X-MSMail-Priority: Normal
            | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
            | > | X-RFC2646: Format=Flowed; Original
            | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
            | > | Message-ID: <eeKMJU28FHA.12 76@TK2MSFTNGP09 .phx.gbl>
            | > | Newsgroups: microsoft.publi c.dotnet.langua ges.vb
            | > | NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bel lsouth.net
            | > 65.12.165.118
            | > | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
            | > | Xref: TK2MSFTNGXA02.p hx.gbl
            microsoft.publi c.dotnet.langua ges.vb:305927
            | > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
            | > |
            | > | Hi,
            | > | I would like to find out exactly what is being sent when a web page
            uses
            | > the
            | > | post request method. My thought was to use the webbrowser control
            | > together
            | > | with the HTTPWebRequest class, but am having trouble tying the two
            | > together.
            | > | Any ideas?
            | > |
            | > | Thanks,
            | > | Clif
            | > |
            | > |
            | > |
            | >
            |
            |
            |

            Comment

            • Ariston Darmayuda

              #7
              RE: Capture http post request

              Hi there,

              I know try develop application like SQUID on linux that work for packet
              filter. I have read an article at www.codeproject.com about Packet Filter
              API, sound interesting. But then i want to modify it so that the filter work
              not from packet source and destination IP, but for packet request.

              For example i want to block my client computer can not download or request
              *.exe file from any website. So i only need to put filter of request that
              contains .exe on the tail, then anyone who want to request .exe file will
              droped.

              For how to see any packet that walk on adapter i can use Sniff method, the
              article also provide by www.codeproject.com.

              PS: The first one maybe only for http request, the rest i will develop my
              self and will published at www.codeproject.com (i don't know where to publish
              a project at MSDN).

              Thanks for your help and attention.

              "Steven Cheng[MSFT]" wrote:
              [color=blue]
              > Hi Clif,
              >
              > Welcome to MSDN newsgroup.
              > From your description, you're wantting to capture the HTTP request/respons
              > 's content sent between client webbrowser and the webserver.... , yes?
              >
              > Generally, for diagnostics or tracing purpose, we can consider using some
              > protocol tracing tools. And the Trace Utility (in SOAP Toolkit 3.0) or the
              > TcpTrace (.net version...) are good and simple for general tracing of HTTP/
              > TCP message....
              >
              > You can get them through the following link:
              >
              > #SOAP Toolkit 3.0(just use the Trace Utility in it....)
              > http://www.microsoft.com/downloads/d...0dd-ceec-4088-
              > 9753-86f052ec8450&di splaylang=en
              >
              > #Tcp Trace
              > http://www.pocketsoap.com/tcptrace/
              > http://jarok.cs.ohiou.edu/software/t.../download.html
              >
              > Hope helps. Thanks,
              >
              > Steven Cheng
              > Microsoft Online Support
              >
              > Get Secure! www.microsoft.com/security
              > (This posting is provided "AS IS", with no warranties, and confers no
              > rights.)
              >
              >
              >
              >
              >
              >
              >
              > --------------------
              > | Reply-To: "Clif" <MicroPutz@comm unity.nospam>
              > | From: "Clif" <MicroPutz@comm unity.nospam>
              > | Subject: Capture http post request
              > | Date: Sun, 27 Nov 2005 10:12:49 -0500
              > | Lines: 10
              > | X-Priority: 3
              > | X-MSMail-Priority: Normal
              > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
              > | X-RFC2646: Format=Flowed; Original
              > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
              > | Message-ID: <eeKMJU28FHA.12 76@TK2MSFTNGP09 .phx.gbl>
              > | Newsgroups: microsoft.publi c.dotnet.langua ges.vb
              > | NNTP-Posting-Host: adsl-065-012-165-118.sip.asm.bel lsouth.net
              > 65.12.165.118
              > | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
              > | Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.vb:305927
              > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
              > |
              > | Hi,
              > | I would like to find out exactly what is being sent when a web page uses
              > the
              > | post request method. My thought was to use the webbrowser control
              > together
              > | with the HTTPWebRequest class, but am having trouble tying the two
              > together.
              > | Any ideas?
              > |
              > | Thanks,
              > | Clif
              > |
              > |
              > |
              >
              >[/color]

              Comment

              Working...