Add parameters to empty POST body
Hi Alex,
I was wondering if you could help me. I'm new to squid and ecap. I'm struggling to get the big picture even after seeing the adapter samples and libecap sources (it's not clear what's the calling sequence of XActions method, who calls them too). I would like to create a reqmode adapter that adds username and password to a POST request to a SSL login URL (I'm using Squid sneak and peek).
I started using adapter_modifying, changed squid.conf to reqmode_precache. But I'm not struggling to add a body. The adapter sample removes the content-length header, so it's send as 0. And at Service Start it tests if body is empty and seems to call lasthostcall or something.. I tried to modify vbContentDone to add my parameters to the buffer variable, but I'm feeling that it has not been calling. The content length is still 0 and no parameters are sent.
Could you give me some directions of what I should have done?
Thanks in advance!
Best Regards,
Sergio
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- eCAP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Sergio Fukaya for more information if necessary.