handling meta refresh with http.Client

344 views
Skip to first unread message

Andrew O'Neill

unread,
Sep 3, 2014, 1:18:19 PM9/3/14
to golan...@googlegroups.com
Is there a standard way to check for and handle the <meta http-equiv="refresh"... from a custom client call to Post (or any other methods)? My client receives the status 200 code and I believe therefore does not redirect. Since I know the address of the next page I call Get with a const address it should redirect to. I'm new to network programming so maybe it is something easy.

Andrew

James Bardin

unread,
Sep 3, 2014, 2:09:36 PM9/3/14
to golan...@googlegroups.com
The meta refresh tag is not part of the HTTP protocol, so there is nothing for the client to do.
You need to parse the html and issue a new request.
Reply all
Reply to author
Forward
0 new messages