<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>HI<br></div><div><br></div><div>I am trying to set up redirection via icap for a project I am working on.<br></div><div><br></div><div>my current icap config looks like this<br></div><div><br></div><div>icap_service service_res respmod_precache icap://127.0.0.1:1344/respmode bypass=0<br></div><div>adaptation_access service_res allow all<br></div><div><br></div><div>and I am generating responses that look like this (in the log)<br></div><div><br></div><div>2019/10/10 19:42:48.138 kid1| 93,5| ModXact.cc(654) parseMore:<br></div><div>ICAP/1.0 200 OK<br></div><div>Connection: close<br></div><div>Date: Thu Oct 10 19:42:48 2019 UTC<br></div><div>ISTag: BITZ-1570736568-132184<br></div><div>Server: bitz-server 2.0.0<br></div><div>Encapsulated: req-hdr=0, res-hdr=615<br></div><div><br></div><div>GET <a href="http://www.frip.com/favicon.ico">http://www.frip.com/favicon.ico</a> HTTP/1.1<br></div><div>Pragma: no-cache<br></div><div>Cache-Control: no-cache<br></div><div>User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36<br></div><div>Accept: image/webp,image/apng,image/*,*/*;q=0.8<br></div><div>Referer: <a href="http://www.frip.com/">http://www.frip.com/</a><br></div><div>Accept-Encoding: gzip, deflate<br></div><div>Accept-Language: en-US,en;q=0.9<br></div><div>Cookie: viewmode=regular; browser_id=130.211.1.243%3A5d93bd8d5d5f0; language=en-us; _ga=GA1.2.2047886438.1569970932; _gid=GA1.2.1012209846.1570399958; count=12; gamexsess=fbr4qbg0fp4q111jq6pj5r9517; env=%7Bww%3A1903%2Cwh%3A969%7D<br></div><div>Host: <a href="http://www.frip.com">www.frip.com</a><br></div><div><br></div><div>HTTP/1.1 307 Moved Temporarily<br></div><div>Location: <a href="http://www.test.com/">http://www.test.com/</a><br></div><div>Date: Thu, 10 Oct 2019 19:42:48 UTC<br></div><div>Origin: Local<br></div><div><br></div><div><br></div><div>2019/10/10 19:42:48.138 kid1| 93,5| ModXact.cc(749) parseHeaders: parse ICAP headers<br></div><div><br></div><div>looking at the log, there seesm to be something in the header that is not correct<br></div><div><br></div><div>2019/10/10 19:42:48.138 kid1| 93,5| ModXact.cc(1079) parseHead: have 905 head bytes to parse; state: 0<br></div><div>2019/10/10 19:42:48.138 kid1| 93,5| ModXact.cc(1094) parseHead: parse success, consume 170 bytes, return true<br></div><div>2019/10/10 19:42:48.138 kid1| 93,5| ModXact.cc(785) parseIcapHead: found connection close<br></div><div>2019/10/10 19:42:48.138 kid1| 93,7| ModXact.cc(523) stopBackup: will no longer backup [FD 16;RrBp(1)S(2)G/w job23]<br></div><div>2019/10/10 19:42:48.138 kid1| 93,9| ModXact.cc(427) virginConsume: consumption guards: 00001<br></div><div>2019/10/10 19:42:48.138 kid1| 93,8| ModXact.cc(446) virginConsume: postponing consumption from  [0<=1066<=1066 1066+981 pipe0x55a883de4f08 cons0x55a883de6208]<br></div><div>2019/10/10 19:42:48.138 kid1| 93,7| ModXact.cc(646) checkConsuming: will stop consuming [FD 16;Rrp(1)S(2)G/w job23]<br></div><div>2019/10/10 19:42:48.138 kid1| 93,5| ModXact.cc(754) parseHeaders: parse HTTP headers<br></div><div>2019/10/10 19:42:48.138 kid1| 93,4| Xaction.cc(514) setOutcome: ICAP_MOD<br></div><div>2019/10/10 19:42:48.138 kid1| 93,5| ModXact.cc(1079) parseHead: have 735 head bytes to parse; state: 1<br></div><div>2019/10/10 19:42:48.138 kid1| 93,3| ../../../src/base/AsyncJobCalls.h(177) dial: Adaptation::Icap::Xaction::noteCommRead threw exception: parsed || !error<br></div><div>2019/10/10 19:42:48.138 kid1| 93,3| Xaction.cc(512) setOutcome: Warning: reseting outcome: from ICAP_MOD to ICAP_ERR_OTHER<br></div><div>2019/10/10 19:42:48.138 kid1| 93,4| ServiceRep.cc(80) noteFailure:  failure 2 out of 10 allowed in 0sec [up,fail2]<br></div><div>2019/10/10 19:42:48.138 kid1| 93,5| AsyncJob.cc(84) mustStop: Adaptation::Icap::ModXact will stop, reason: exception<br></div><div>2019/10/10 19:42:48.138 kid1| 93,5| AsyncJob.cc(137) callEnd: Adaptation::Icap::Xaction::noteCommRead(local=127.0.0.1:36938 remote=127.0.0.1:1344 FD 16 flags=1, data=0x55a883de6108, size=905, buf=0x55a883df7190) ends job [FD 16;rp(1)S(2)G/Rw job23]<br></div><div>2019/10/10 19:42:48.138 kid1| 93,5| ModXact.cc(1242) swanSong: swan sings [FD 16;rp(1)S(2)G/Rw job23]<br></div><div><br></div><div><br></div><div>I can't find any further detail / logging for the exception that was thrown.<br></div><div><br></div><div>Am I missing something obvious in my approach or something else?<br></div><div><br></div><div>thanks in advance<br></div><div><br></div><div>Darren B.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><pre style="white-space: pre-wrap">This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
</pre></body></html>