Author Topic: How to get a forwarding address?  (Read 1350 times)

Dexter384

  • Guest
How to get a forwarding address?
« on: April 01, 2014, 12:43:26 pm »
Hi!
I have trouble with getting redirect url, that should be recieved in from server when I send request to it.
I send request thru netSend, but recieved only htm result-answer. How I can get information about redirect url and so on?
Thanks in advance for your answers)

robotop

  • Guest
Re: How to get a forwarding address?
« Reply #1 on: July 14, 2014, 12:04:03 pm »
Hi, for my (limited) knowledge of DFSDK, the NetSend answer does not offer the TCP header of incoming web responses. If the page you point to for redirection has the url for redirection in the <head> section, you can add a <body> section using something like: if you are not redirected in 5 seconds, click <a href="yoururl.com"> here </a>" (where yoururl.com is the url to redirecting to). This way, the page is redirected in normal way if accessed by a browser and you can parse the html code to search the redirect url in the <a href=""> tag, then use it in next NetSend of your application.
« Last Edit: July 14, 2014, 12:35:09 pm by robotop »