Discussion:
PassthruAPP Custom Mime Filter
(too old to reply)
f***@gmail.com
2009-04-01 08:31:55 UTC
Permalink
Hi all!

How to add my own MIME-filter and implement it?

(Without APP it was like MIMEflt exmaple)
CComPtr<IInternetSession> s;
s->RegisterMimeFilter(CFilterFactory_obj, CLSID_MyFilter, L"html/
text");

etc;

But it works only for POST-request (html, css), but Javascript in
<script src="..."> requests by GET and MIMEflt-like implement doesn't
work.

How to capture html and javascript in PassthruApp?
In ::Read - all data passes, but how to separate data by content-types
without analysys raw text or binary data (for images, for example)?

Thanks,

Best regards,
Anton.
Igor Tandetnik
2009-04-01 11:40:20 UTC
Permalink
Post by f***@gmail.com
How to add my own MIME-filter and implement it?
(Without APP it was like MIMEflt exmaple)
CComPtr<IInternetSession> s;
s->RegisterMimeFilter(CFilterFactory_obj, CLSID_MyFilter, L"html/
text");
etc;
But it works only for POST-request (html, css), but Javascript in
<script src="..."> requests by GET and MIMEflt-like implement doesn't
work.
Probably because the server sends it with a MIME type other than
text/html, or whatever type you register your filter for. This has
nothing to do with GET vs POST.
Post by f***@gmail.com
How to capture html and javascript in PassthruApp?
In what way its behavior "out of the box" doesn't meet your
expectations?
Post by f***@gmail.com
In ::Read - all data passes, but how to separate data by content-types
without analysys raw text or binary data (for images, for example)?
Listen to ReportProgress(BINDSTATUS_MIMETYPEAVAILABLE) notification.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Loading...