[
https://issues.apache.org/jira/browse/TS-1300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13588442#comment-13588442
]
Uri Shachar commented on TS-1300:
---------------------------------
Sure, maybe consider adding a comment to the header to point folks to the right
direction.
{code:title=ts.h.in|borderStyle=solid}
diff --git a/proxy/api/ts/ts.h.in b/proxy/api/ts/ts.h.in
index f1d5982..0860de0 100644
--- a/proxy/api/ts/ts.h.in
+++ b/proxy/api/ts/ts.h.in
@@ -1388,6 +1388,7 @@ extern "C"
call to TSmalloc(). It should be freed by a call to TSfree().
The length parameter must present, providing storage for the URL
string length value.
+ Note: To get the effective URL from a request, use
TSHttpTxnEffectiveUrlStringGet
@param bufp marshal buffer containing the URL you want to get.
@param offset location of the URL within bufp.
{code}
> 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