Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

McAfee Integration: Status Code 418 #14

Open
charliefryer opened this issue Sep 26, 2018 · 4 comments
Open

McAfee Integration: Status Code 418 #14

charliefryer opened this issue Sep 26, 2018 · 4 comments

Comments

@charliefryer
Copy link

Hi,

When trying to implement with a McAfee server, I am recieving error code 418 which I believe means my request is missing a required request header.
I read the issue raised by sc06 and followed their advice (#8 (comment)) modifying the request as follows:

ESPMOD icap://<I.P.>/RESPMOD ICAP/1.0
Host: <I.P.>
X-Client-Abandon-Supported: 1
Preview: 30
X-Scan-Progress-Interval: 10
Allow: 204
Encapsulated: res-hdr=0, res-body=26

Content-Length: 572939

1e

I dont understand how sc06 created a request header.
Is the following from their comment the request header?:

"GET /C:\TestFiles\test1.txt HTTP/1.1
Host: icap.health.check"

Why would that need to be sent? Do I need to make the file available on that host?
Please forgive my lack of knowledge around the protocol.

Thanks very much for your help.

Charlie.

@charliefryer
Copy link
Author

Hi,

I updated the request to specify an empty request header ie
"Encapsulated: res-hdr=0, res-body="+resBody.length()+"\r\n"

I'm now getting an IOException Connection reset by peer: socket write error

I'll investigate to see if this is an issue on the server.

Thanks,
Charlie.

@Baekalfen
Copy link
Owner

I've never had access to an McAfee server, so I don't know if my code is compatible.

The "GET ..." part from #8 would be the encapsulated HTTP request, but it seems confusing, when you cannot differentiate what the server and client says.

My code will be sending the file inside the datastream. So I cannot say for sure why the filepath is in the request.

If you find a solution, I will gladly update my code accordingly.

@taoef1k
Copy link
Contributor

taoef1k commented Oct 23, 2018

If this issue still occurs, you may try with the latest code, perhaps can work with it.

@SalmanZafar214
Copy link

SalmanZafar214 commented Jul 12, 2019

i have tired latest code but yet getting Server returned unknown status code:418
Scanning server is McAfee
RESPMOD icap://192.168.3.27/avscan ICAP/1.0
Host: 192.168.3.27
User-Agent: IT-Kartellet ICAP Client/1.1
Allow: 204
Preview: 30
Encapsulated: res-hdr=0, res-body=26

Content-Length: 696416

1E\r\n"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants