Hi,

Yes it helps!.

This is the output I get from curl -v

***********output********************

Trying 127.0.0.1...
* connected
* Connected to 127.0.0.1 (127.0.0.1) port 8000 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.26.0
> Host: 127.0.0.1:8000
> Accept: */*
> 
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 301 Moved Permanently
< Location: https://127.0.0.1:8001
< Date: Tue, 21 Feb 2017 04:11:08 GMT
< Content-Length: 57
< Content-Type: text/html; charset=utf-8
< 
<a href="https://127.0.0.1:8001";>Moved Permanently</a>.

* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0

> ***************************************************************************
>
the url is correct is the output from curl. However what I saw in the 
browser is the first time was the incorrect url. I then cleared the browser 
cache and subsequently the redirect worked. Didn't have to change a thing 
in the code. 

Thanks
Rejoy

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to