Click here to Skip to main content
14,870,660 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,
I have a requirement for rendering entire 3rd party website into our application.
To download data, we are using WebRequest class in-built Dot net library.
While downloading, status code shows 302 which means moved temporally.

Suppose for example, I am accessing ( https://abc.com/xyz.html file ) from our localhost/hosted application (IIS) which is different website and getting 302 status on browser console.

Kindly help me out how we can handle this status.


What I have tried:

I tried something like if status code is 302 and redirecting to other link.
But still it did not works.
Posted
Updated 23-Mar-21 0:09am
v2
Comments
Richard Deeming 23-Mar-21 4:52am
   
If you want help fixing your code, you need to show the relevant parts of your code.

But from the description, it sounds like you're trying to display someone else's content in your own site without their permission. Nobody here will help you steal someone else's work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900