How to get the fully qualified Url in wantsUrl

Asked by Kyle Brost

Hello,

How do you get the fully qualified URL in the libecap::adapter::Service::wantsUrl method?

Right now if I go to http://www.mysite.com/dir1/index.html, all I get passed into wantsUrl is "dir1/index.html"

I see in the adapter how I can rebuild the Url but that requires access to the host object. I don't see where I can get the host object from within the Service.

Thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
eCAP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alex Rousskov (rousskov) said :
#1

Getting just the path instead of a full URL in libecap::adapter::Service::wantsUrl() method is a host application bug (provided the virgin message had enough information to construct the full URL).

If you are using Squid, the bug is in Squid's Adaptation::Service::wants() method. Please file a bug report with Squid bugzilla.

While the bug is getting fixed, you can reject unwanted messages from your adaptation transactions, of course, but wantsUrl() is cheaper performance-wise.

Can you help with this problem?

Provide an answer of your own, or ask Kyle Brost for more information if necessary.

To post a message you must log in.