Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[4637] Retrieving HTTP content in .NET

Last post 07-10-2007 3:29 PM by ansvlug. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [4637] Retrieving HTTP content in .NET

    This thread is for discussions of Retrieving HTTP content in .NET.

    • Post Points: 30
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 03-25-2005 12:48 AM In reply to

    • kevin77
    • Not Ranked
    • Joined on 11-06-2003
    • New Member
    • Points 10

    Use finally blocks liberally

    Your article is very good and your source code is a good start.  It has some cool features but is lacking some good programming practices.  Most noteable is the lack of finally blocks used.  You should try to insure that the Close() method on the WebRequest and WebResponse objects are always closed before the object reference goes out of scope.  You can ensure that happens by placing your code in a try/finally block.

    Also, you should consider having your class implement the IDisposable interface.  And in that implementation clean up, close, and release the resources used by your private variables.
    • Post Points: 0
  • 10-18-2005 2:51 AM In reply to

    • nsrajesh
    • Not Ranked
    • Joined on 10-18-2005
    • New Member
    • Points 10

    need help about httprequest automation

    hi
    I use httpwebrequest to login into a website (using Networkcrendential). When i got that page i need to click a link. How can we achieve this (axwebbrowser ?) and it contains frames. And also after clicking that menu in second page i have to click a Javascript button. Is there anyway to achieve this.

    Rajesh
    • Post Points: 10
  • 05-10-2006 4:30 AM In reply to

    • monas
    • Not Ranked
    • Joined on 05-09-2006
    • Indonesia
    • New Member
    • Points 5

    Re: need help about httprequest automation

    hi

    i have similar problem like you (in a previous time) with in using httwebrequest to login in a website... especially how to handle event clicking ex: onkeypress="checklogin()"

    i hope you can help me to solve the problem..

     

    thnx b4

    • Post Points: 5
  • 12-29-2006 10:27 PM In reply to

    Re: [4637] Retrieving HTTP content in .NET

    I'm just new to c# coming from VB.NET.  This is a great example!  Thanks
    • Post Points: 5
  • 03-12-2007 6:57 PM In reply to

    • PIERCGG
    • Not Ranked
    • Joined on 03-12-2007
    • New Member
    • Points 5

    Re: [4637] Retrieving HTTP content in .NET

    You have a paragraph that states:

    "The most common use of delegates is an eventhandler, which uses the delegate to fire events. When the event publisher fires the event method, the delegate that is assigned to handle the event is called and you're event subscriber object then can simply handle the event by implementing a method in your class."

    Unfortunately, for someone trying desparately to learn C#, this sounds like:

    "blah blah blah blah blah blah"

    I'm sorry but could you publish a REAL SIMPLE example and explanation of asynch calls in Asp.net/C#.  I have been all over the web looking for one and they all assume you already know C# so all the delegate calling callback calling method calling delegate calling calling callingcallingcalling.................has just finally gotten on my nerves.

    • Post Points: 5
  • 07-10-2007 3:29 PM In reply to

    • ansvlug
    • Not Ranked
    • Joined on 07-10-2007
    • Netherlands
    • New Member
    • Points 5

    Re: [4637] Retrieving HTTP content in .NET

      if (oReqCookie.Name ==
            oRespCookie.Name)  {
            oReqCookie.Value =
                   oRespCookie.Name;

    Do you mean?








     if (oReqCookie.Name ==
            oRespCookie.Name)  {
            oReqCookie.Value =
                   oRespCookie.Value;




    • Post Points: 5
Page 1 of 1 (7 items)