httpWebRequest with Cookie and Server Response

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aum4us
    New Member
    • Oct 2007
    • 4

    httpWebRequest with Cookie and Server Response

    Hi All,

    I would be more Helpful if someone can help me in this.

    I want to get some data from another web Page. Like Temperature updated in that page.

    I can able to log in the Wep page throught HttpWebRequest and collect the Cookies. Navigate to different Pages in that domain. But unable to navigate to a particular page progaramaticaly (domine/bin/comman/Shadule.Pl) even with the cookies. I can access this page in the (i.e) after loging into the Website.

    Can anyone help me to find what the server request other than the Cookies?

    How to keep the session alive and pass the redirect the Uri after successfully log into the Page programatically in VB.Net?

    Thanks in Advance,
    Aum4us
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Maybe you would be better served by a web service or rss feed?

    Comment

    • Aum4us
      New Member
      • Oct 2007
      • 4

      #3
      Originally posted by kenobewan
      Maybe you would be better served by a web service or rss feed?
      Thanks

      I have to collect the session ID and Proxy Authentication id from the cookie container and send with the redirect page in GET method.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Originally posted by Aum4us
        Hi All,

        I would be more Helpful if someone can help me in this.

        I want to get some data from another web Page. Like Temperature updated in that page.

        I can able to log in the Wep page throught HttpWebRequest and collect the Cookies. Navigate to different Pages in that domain. But unable to navigate to a particular page progaramaticaly (domine/bin/comman/Shadule.Pl) even with the cookies. I can access this page in the (i.e) after loging into the Website.

        Can anyone help me to find what the server request other than the Cookies?

        How to keep the session alive and pass the redirect the Uri after successfully log into the Page programatically in VB.Net?

        Thanks in Advance,
        Aum4us

        Are you also getting the "session cookie" from this website? Sometimes it will come as a value in the Headers[] and not as a Cookies[]
        Some places also require the referer header to be sent from a valid page on their own website

        Comment

        • shahdeveloper1
          New Member
          • Nov 2007
          • 1

          #5
          I HAVE THE SAME PROBLEM .i am using ajax with asp.net as backend page.
          every thing is going on well when there is session live but when want the username etc from the cookies it then give me that the person is not login means cookies from get is not working.plz required help
          thanks

          Comment

          • Aum4us
            New Member
            • Oct 2007
            • 4

            #6
            Hi,

            Thanks, when i check with server response it shows the below errors.
            Expires: Mon, 05 Nov 2007 11:42:07 GMT
            X-Squid-Error: ERR_CACHE_ACCES S_DENIED 0
            Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
            X-Cache: MISS from LI-SQU-1
            X-Cache-Lookup: NONE from LI-SQU-1:3128

            What makes cause for this problem.

            Comment

            • Plater
              Recognized Expert Expert
              • Apr 2007
              • 7872

              #7
              I would say your proxy server is blocking the cookies.
              "Squid proxy-caching web server" something is wrong with that thing that the cache is erroring?

              Comment

              Working...