Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Converting Request object to WebRequest in asp.net

Converting Request object to WebRequest in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amitar27
    wrote on last edited by
    #1

    Hi All, I am writing internet application proxy for which i have to convert HttpContext.Current.Request object to WebRequest object such that i pass on all the information from Request to WebRequest. Any ideas? Thanks, Amit

    N 1 Reply Last reply
    0
    • A amitar27

      Hi All, I am writing internet application proxy for which i have to convert HttpContext.Current.Request object to WebRequest object such that i pass on all the information from Request to WebRequest. Any ideas? Thanks, Amit

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      You can't convert them, they are two seperate objects for different purposes. What are you trying to accomplish?


      only two letters away from being an asset

      A 1 Reply Last reply
      0
      • N Not Active

        You can't convert them, they are two seperate objects for different purposes. What are you trying to accomplish?


        only two letters away from being an asset

        A Offline
        A Offline
        amitar27
        wrote on last edited by
        #3

        I am trying to write internet application which will be hosted by me and used by client but application need to access the database which is exposed as webservice in intranet. Now, i was thinking of hosting a application proxy on client side which will access webservice in intranet environment and then call my application in internet. For an example say client need access Default.aspx page, it will go the application proxy and depending on which page i am trying to access application proxy will get the information from client database and then it will reconstruct the webrequest and send the request to my application. Thats what i am trying to achieve. Let me know if i can achieve above funtionality some other way. Thanks, Amit

        N 1 Reply Last reply
        0
        • A amitar27

          I am trying to write internet application which will be hosted by me and used by client but application need to access the database which is exposed as webservice in intranet. Now, i was thinking of hosting a application proxy on client side which will access webservice in intranet environment and then call my application in internet. For an example say client need access Default.aspx page, it will go the application proxy and depending on which page i am trying to access application proxy will get the information from client database and then it will reconstruct the webrequest and send the request to my application. Thats what i am trying to achieve. Let me know if i can achieve above funtionality some other way. Thanks, Amit

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Let me know when you work this out. :rolleyes:


          only two letters away from being an asset

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups