C# WebRequest with php redirecting page?

The AllowAutoRedirect will automatically take you to the new URI; if that is you're desired effect. The AutomaticDecompression will auto decompress compressed responses. Also you should be executing the get response stream part in a try catch block.

I my exp it throws alot of WebExceptions.

HttpWebRequest req = (HttpWebRequest)WebRequest. Create(link); req. AllowAutoRedirect = true; reg.

AutomaticDecompression = DecompressionMethods. GZip; StreamReader _st = new StreamReader(_req. GetResponseStream(), System.Text.Encoding.

GetEncoding(req. CharacterSet)); the AllowAutoRedirect will automatically take you to the new URI; if that is you're desired effect. The AutomaticDecompression will auto decompress compressed responses.

Also you should be executing the get response stream part in a try catch block. I my exp it throws alot of WebExceptions. Since you're experimenting with this technology make sure you read the data with the correct encoding.

If you attempt to get data from a japanese site without using Unicode then the data will be invalid.

Check the "Location" header from the response - it should contain the new URL.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions