/chrome/community?hl=en
/chrome/community?hl=en
1/26/15
Original Poster
Nils Heymann

301 redirect issue with https (ERR_RESPONSE_HEADERS_TRUNCATED)

We are trying to setup a 301 redirect in our Citrix Netscaler based on this description: http://support.citrix.com/article/CTX133383. This works fine for http to https but not for https to https. In latter case we get "Error code: ERR_RESPONSE_HEADERS_TRUNCATED" in Chrome, all other tested browsers are working fine.

A valid unified certificate including names for both used urls is configured.

The used config for the redirect is
"HTTP/1.1 301 Moved Permanently\r\n" + "Location: https://www.abc.com" + http.req.url.path_and_query.http_url_safe + "\r\n"


https://abc.com --> https://www.abc.com does not work (ERR_RESPONSE_HEADERS_TRUNCATED)

* Adding handle: conn: 0x7febf100fe00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7febf100fe00) send_pipe: 1, recv_pipe: 0
* About to connect() to abc.com port 443 (#0)
*   Trying w.x.y.z...
* Connected to abc.com (w.x.y.z) port 443 (#0)
* TLS 1.2 connection using TLS_RSA_WITH_RC4_128_MD5
* Server certificate: www.certificate.com
* Server certificate: COMODO RSA Organization Validation Secure Server CA
* Server certificate: COMODO RSA Certification Authority
* Server certificate: AddTrust External CA Root
> GET / HTTP/1.1
> User-Agent: curl/7.30.0
> Host: abc.com
> Accept: */*
< HTTP/1.1 301 Moved Permanently
* Connection #0 to host abc.com left intact


My Chrome version is 40.0.2214.91. The same happens on Chrome on other machines as well. Not sure which version are in use there.



Community content may not be verified or up-to-date. Learn more.
All Replies (2)
Sarah Dee
1/27/15
Sarah Dee
Hi Nils,

Hopefully someone on our community can chip in but otherwise you may want to try a Chrome developers forum

Cheers,
Sarah
2/6/15
Original Poster
Nils Heymann
I found a solution:

We needed to add an additional CRLR at the end so it looks like this now:
"HTTP/1.1 301 Moved Permanently\r\n" + "Location: https://www.abc.com" + http.req.url.path_and_query.http_url_safe + "\r\n\r\n"
Were these replies helpful?
How can we improve them?
 
This question is locked and replying has been disabled. Still have questions? Ask the Help Community.

Badges

Some community members might have badges that indicate their identity or level of participation in a community.

 
Google Employee — Google product team members and community managers
 
Community Specialist — Google partners who help ensure the quality of community content
 
Platinum Product Expert — Community members with advanced product knowledge who help other Google users and Product Experts
 
Gold Product Expert — Community members with in-depth product knowledge who help other Google users by answering questions
 
Silver Product Expert — Community members with intermediate product knowledge who help other Google users by answering questions
 
Product Expert Alumni — Former Product Experts who are no longer members of the program
Community content may not be verified or up-to-date. Learn more.

Levels

Member levels indicate a user's level of participation in a forum. The greater the participation, the higher the level. Everyone starts at level 1 and can rise to level 10. These activities can increase your level in a forum:

  • Post an answer.
  • Having your answer selected as the best answer.
  • Having your post rated as helpful.
  • Vote up a post.
  • Correctly mark a topic or post as abuse.

Having a post marked and removed as abuse will slow a user's advance in levels.

View profile in forum?

To view this member's profile, you need to leave the current Help page.

Report abuse in forum?

This comment originated in the Google Product Forum. To report abuse, you need to leave the current Help page.

Reply in forum?

This comment originated in the Google Product Forum. To reply, you need to leave the current Help page.

false
Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
237
false