<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 25, 2009, at 3:24 AM, Mangesh Kute wrote:</div><blockquote type="cite"><div><div style="margin-bottom: 0px; margin-top: 0px; "><font face="Dialog" size="2">Hi All,</font>    </div>
<br><div style="margin-bottom: 0px; margin-top: 0px; ">
      <font face="Dialog" size="2">We provide print client "iPrint" on Mac using CUPS API, to work with Novell iPrint server.</font>    </div><div style="margin-bottom: 0px; margin-top: 0px; ">
      <font face="Dialog" size="2">We connect to local CUPS server by giving host name as "/private/var/run/cupsd"(value returned by cupsServer()). After connecting successfully when we send any request on this connection, it returns an error "HTTP_BAD_REQUEST". In CUPS error log, we are seeing error 'Request from "localhost" using invalid Host : field "/private/var/run/cupsd"'</font>    </div>
    <br><div style="margin-bottom: 0px; margin-top: 0px; ">
      <font face="Dialog" size="2">Does anyone have any idea on the reason for error ?</font>    </div>
</div></blockquote><div><br></div>Sure, you aren't passing in a valid hostname.  CUPS is now checking for that.</div><div><br></div><div>If you use the CUPS functions for sending IPP requests, the domain socket filename</div><div>is automatically mapped to localhost when the request is sent.  Otherwise, you are</div><div>responsible for doing so since otherwise httpPost() uses the address passed to</div><div>httpConnect().</div><div><br></div><div>In general, there should be no reason not to use the CUPS-provided cupsDo*Request</div><div>functions in any application.  If there is, we want to know about it!</div><div><br></div><div><blockquote type="cite"><div><div style="margin-bottom: 0px; margin-top: 0px; ">
      <font face="Dialog" size="2">We are seeing this error after applying "Mac Security Update 2009-001' on Mac OS10.5. But if we install Mac combo update 10.5.6, we are not seeing this error and communication goes fine with local cups server.</font>    </div>
<br><div style="margin-bottom: 0px; margin-top: 0px; ">
      <font face="Dialog" size="2">Is "CUPS 1.3.8" provided on Mac OS X 10.5  customized for MAC and is it different from source code available at </font><i><a href="http://svn.easysw.com/public/cups/tags/release-1.3.8/"><u><font size="2" color="#0000ff" face="Dialog">http://svn.easysw.com/public/cups/tags/release-1.3.8/</font></u></a></i><font face="Dialog" size="2">  (I am not able to locate above error in this source code) ?  From where can I get source code for "CUPS 1.3.8" provided on Mac OS X 10.5 ?</font>    </div></div></blockquote><div><br></div>The update contains some of the changes from later CUPS releases.</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>________________________________________</div><div>Michael R Sweet, Senior Printing System Engineer</div></div></div></span></span>
</div>
<br></body></html>