Hi, I am using atscppapi in my plugin. I send a curl request as follows to ATS:
curl 'http://localhost:8080/abcdef?a=1&b=2' In my plugin code, in handleReadRequestHeadersPreRemap function, I am printing the following: logInfo("effective-url: %s", txn.getEffectiveUrl().c_str()); ClientRequest& request = txn.getClientRequest(); Url& url = request.getUrl(); logInfo("url: %s", url.getUrlString().c_str()); logInfo("host: %s", url.getHost().c_str()); logInfo("path: %s", url.getPath().c_str()); What gets print is as follows: effective-url: http://localhost/abcdef?a=1&b=2 url: None host: '' path: abcdef The 'url' and 'host' are empty. Could someone explain the reason for this? How can get the correct url and host to be printed? Any help is appreciated. Thanks Dk