You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Oliver Schulze L." <ol...@samera.com.py> on 2006/09/22 21:17:43 UTC

[users@httpd] Chaging CR/LF on-the-fly with mod_publisher

Hi.
I'm doing a ProxyPass in apache 2.0 of a IP camera.

The camara has a built-in webserver and I'm having a problem
the that webserver, because it sends all the http files in DOS mode,
that is, having CR/LF as the newline separator.

In the traffic flow, there is some squid proxy that does not like this
kind of CR/LF and the squid generate the errors:
1158877929.909      0 192.168.1.1 TCP_DENIED/400 1558 GET 
error:missing-http-ident - NONE/- text/html

Also, if I do a wget of a file in the Ip camera, the file ends up in DOS 
format.

My idea is to use mod_publisher or some mod to convert from CR/LF on te fly
in apache. So, every squid that is the traffic flow does not DENIED the 
file.

I tried this already:

<VirtualHost ....
...
ProxyPass / http://192.168.xx.yy/
ProxyPassReverse / http://192.168.xx.yy/
SetOutputFilter  markup-publisher
MLRewriteRule http://192.168.xx.yy /
MLOutputMode HTML
MLRewriteOptions +events +attributes +characters +cdata
MLRewriteRule \r\n \n Rn
SetOutputFilter  charset-lite
CharsetSourceEnc UTF-8
CharsetDefault ISO-8859-1
</VirtualHost>

Thanks
Oliver

-- 
Oliver Schulze L.
Get my e-mail after a captcha test in: http://tinymailto.com/oliver


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Chaging CR/LF on-the-fly with mod_publisher

Posted by "Oliver Schulze L." <ol...@samera.com.py>.
Hi Nick,
no, I did not received it. :(
I'm glad you answer me, could you please re-send it to the list
or to me?

Many thanks!
Oliver

Nick Kew wrote:
> On Wednesday 27 September 2006 15:22, Oliver Schulze L. wrote:
>   
>> It is posible the modify the header info also?
>> I'm having a problem with the device that is sending non 100% html
>> compliant headers.
>>     
>
> Hmmm, did you get my reply to your original post?
> It seems that most (all?) of what I sent from OSCon to the Apache
> lists last week may be lost in some black hole.
>
>   

-- 
Oliver Schulze L.
Get my e-mail after a captcha test in: http://tinymailto.com/oliver


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Chaging CR/LF on-the-fly with mod_publisher

Posted by Nick Kew <ni...@webthing.com>.
On Wednesday 27 September 2006 15:22, Oliver Schulze L. wrote:
> It is posible the modify the header info also?
> I'm having a problem with the device that is sending non 100% html
> compliant headers.

Hmmm, did you get my reply to your original post?
It seems that most (all?) of what I sent from OSCon to the Apache
lists last week may be lost in some black hole.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.prenhallprofessional.com/title/0132409674

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Chaging CR/LF on-the-fly with mod_publisher

Posted by "Oliver Schulze L." <ol...@samera.com.py>.
It is posible the modify the header info also?
I'm having a problem with the device that is sending non 100% html
compliant headers.

Thanks
Oliver

Oliver Schulze L. wrote:
> Hi.
> I'm doing a ProxyPass in apache 2.0 of a IP camera.
>
> The camara has a built-in webserver and I'm having a problem
> the that webserver, because it sends all the http files in DOS mode,
> that is, having CR/LF as the newline separator.
>
> In the traffic flow, there is some squid proxy that does not like this
> kind of CR/LF and the squid generate the errors:
> 1158877929.909      0 192.168.1.1 TCP_DENIED/400 1558 GET 
> error:missing-http-ident - NONE/- text/html
>
> Also, if I do a wget of a file in the Ip camera, the file ends up in 
> DOS format.
>
> My idea is to use mod_publisher or some mod to convert from CR/LF on 
> te fly
> in apache. So, every squid that is the traffic flow does not DENIED 
> the file.
>
> I tried this already:
>
> <VirtualHost ....
> ...
> ProxyPass / http://192.168.xx.yy/
> ProxyPassReverse / http://192.168.xx.yy/
> SetOutputFilter  markup-publisher
> MLRewriteRule http://192.168.xx.yy /
> MLOutputMode HTML
> MLRewriteOptions +events +attributes +characters +cdata
> MLRewriteRule \r\n \n Rn
> SetOutputFilter  charset-lite
> CharsetSourceEnc UTF-8
> CharsetDefault ISO-8859-1
> </VirtualHost>
>
> Thanks
> Oliver
>

-- 
Oliver Schulze L.
Get my e-mail after a captcha test in: http://tinymailto.com/oliver


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org