Web Connection
Is there a way to capture the redirected url from httpget
Gravatar is a globally recognized avatar based on your email address. Is there a way to capture the redirected url from httpget
  Michael B
  All
  Nov 16, 2023 @ 01:42pm

Hi Rick,

If httpget visits a url that redirects to a new page, do any of the wwwc objects get populated with the 'new' url or is that not possible without using some kind of browser object in .net?

Thanks!

Gravatar is a globally recognized avatar based on your email address. re: Is there a way to capture the redirected url from httpget
  Rick Strahl
  Michael B
  Nov 16, 2023 @ 02:06pm

You can turn off redirects and manually follow them if the result has a status code of 301 or 302.

#DEFINE INTERNET_FLAG_NO_AUTO_REDIRECT		 	0x00200000 

+++ Rick ---

© 1996-2024