[
https://issues.apache.org/jira/browse/TS-1300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13587792#comment-13587792
]
Uri Shachar commented on TS-1300:
---------------------------------
You need to use TSHttpTxnEffectiveUrlStringGet instead of TSUrlStringGet if you
want to get the full URL in a transparent deployment.
Otherwise you'll get the URL sent by the client -- which won't have the
hostname.
> TSUrlStringGet appears to return incorrect URL for transparent HTTP requests
> ----------------------------------------------------------------------------
>
> Key: TS-1300
> URL: https://issues.apache.org/jira/browse/TS-1300
> Project: Traffic Server
> Issue Type: Bug
> Components: TS API
> Affects Versions: 3.0.2
> Environment: Centos 6.2
> Reporter: Domhnall Wildy
> Assignee: Alan M. Carroll
> Fix For: 3.3.2
>
>
> We have a plugin that uses the TSUrlStringGet method to retrieve the request
> URL. When running TS as a non-transparent proxy the value returned by
> TSUrlStringGet is the full URL for example:
> http://www.somewebsite.com/something.html
> However if I send requests transparently the value returned is:
> http:///something.html
> So it looks as if the host is ignored when the URL string is initially
> created. I just wanted to check here to see if this could be an issue? Or
> could the usage of the method be incorrect?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira