<p dir="ltr" style="margin-top:0; margin-bottom:0;">I test as soon as I have 
access to the device again.</p>
<p dir="ltr" style="margin-top:0; margin-bottom:0;">Thanks for your quick 
feedback.</p>
<p dir="ltr" style="margin-top:0; margin-bottom:0;">Thierry</p>


Le 30 avril 2022 12:19:48 GMT+02:00, Timothe Litt via curl-library 
<curl-library@lists.haxx.se> a écrit :
><html>
>  <head>
>    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
>  </head>
>  <body>
>    <p>Perhaps the device isn't using Basic authentication.  Or it
>      requires TLS with basic.<br>
>    </p>
>    <p>If you enable authentication on the device, and omit the --user
>      to cURL, you should get a 401 from the device.</p>
>    <p>What does the WWW-Authenticate header in that response show?  It
>      will include one or more acceptable authentication types as
>      described n RFC 7235.<br>
>    </p>
>    <p>Besides basic, it could be digest, ntlm, bearer, hoba, negotiate,
>      mutual, scram, ...</p>
>    <p><br>
>    </p>
>    <pre class="moz-signature" cols="72">Timothe Litt
>ACM Distinguished Engineer
>--------------------------
>This communication may not represent the ACM or my employer's views,
>if any, on the matters discussed. 
></pre>
>    <div class="moz-cite-prefix">On 30-Apr-22 05:32, Thierry Huchard via
>      curl-library wrote:<br>
>    </div>
>    <blockquote type="cite"
>      cite="mid:010b72a9219dd99947c6a1a2113da...@ordissimo.com">Hi All,
>      <br>
>      <br>
>      I am trying to create a job on a Canon IR DX C478i.
>      <br>
>      I have a problem when using curl with authentication:
>      <br>
>      * Mark bundle as not supporting multiuse
>      <br>
>      When I disable authentication the device works correctly.
>      <br>
>      Do you have any idea how to solve this problem?
>      <br>
>      <br>
>      <br>
>      ///////////////////////////////////////////////////////////////
>      <br>
>      <br>
>      CAPABILITIES='&lt;?xml version="1.0"
>      encoding="UTF-8"?&gt;&lt;scan:ScanSettings
>      xmlns:pwg=<a class="moz-txt-link-rfc2396E" 
> href="http://www.pwg.org/schemas/2010/12/sm";>"http://www.pwg.org/schemas/2010/12/sm";</a>
>xmlns:scan=<a class="moz-txt-link-rfc2396E" 
>href="http://schemas.hp.com/imaging/escl/2011/05/03";>"http://schemas.hp.com/imaging/escl/2011/05/03";</a>&gt;&lt;pwg:Version&gt;2.0&lt;/pwg:Version&gt;&lt;pwg:ScanRegions&gt;&lt;pwg:ScanRegion&gt;&lt;pwg:ContentRegionUnits&gt;escl:ThreeHundredthsOfInches&lt;/pwg:ContentRegionUnits&gt;&lt;pwg:Height&gt;2550&lt;/pwg:Height&gt;&lt;pwg:Width&gt;4200&lt;/pwg:Width&gt;&lt;pwg:XOffset&gt;0&lt;/pwg:XOffset&gt;&lt;pwg:YOffset&gt;0&lt;/pwg:YOffset&gt;&lt;/pwg:ScanRegion&gt;&lt;/pwg:ScanRegions&gt;&lt;pwg:DocumentFormat&gt;application/pdf&lt;/pwg:DocumentFormat&gt;&lt;scan:DocumentFormatExt&gt;application/pdf&lt;/scan:DocumentFormatExt&gt;&lt;scan:ColorMode&gt;RGB24&lt;/scan:ColorMode&gt;&lt;scan:XResolution&gt;300&lt;/scan:XResolution&gt;&lt;scan:YResolution&gt;300&lt;/scan:YResolution&gt;&lt;pwg:InputSource&gt;Platen&lt;/pwg:InputSource&gt;&lt;scan:InputSource&gt;Platen&lt;/scan:InputSource&gt;&lt;/scan:ScanSettings&gt;'<br>
>      <a class="moz-txt-link-abbreviated" 
> href="mailto:root@jammy:~/hplip-3.21.12+dfsg0#";>root@jammy:~/hplip-3.21.12+dfsg0#</a>
>  curl -v --user 1234:12345 -d
>      "$CAPABILITIES" <a class="moz-txt-link-freetext" 
> href="http://192.168.93.209:80/eSCL/ScanJobs";>http://192.168.93.209:80/eSCL/ScanJobs</a>
>      <br>
>      *   Trying 192.168.93.209:80...
>      <br>
>      * Connected to 192.168.93.209 (192.168.93.209) port 80 (#0)
>      <br>
>      * Server auth using Basic with user '1234'
>      <br>
>      <blockquote type="cite">POST /eSCL/ScanJobs HTTP/1.1
>        <br>
>        Host: 192.168.93.209
>        <br>
>        Authorization: Basic MTIzNDoxMjM0NQ==
>        <br>
>        User-Agent: curl/7.81.0
>        <br>
>        Accept: */*
>        <br>
>        Content-Length: 795
>        <br>
>        Content-Type: application/x-www-form-urlencoded
>        <br>
>        <br>
>      </blockquote>
>      * Mark bundle as not supporting multiuse
>      <br>
>      &lt; HTTP/1.1 500 Internal Server Error
>      <br>
>      &lt; Date: Sat, 30 Apr 2022 09:50:40 GMT
>      <br>
>      &lt; Server: CANON HTTP Server
>      <br>
>      &lt; Content-Length: 0
>      <br>
>      &lt;
>      <br>
>      * Connection #0 to host 192.168.93.209 left intact
>      <br>
>      <br>
>      /////////////////////////////////////////////////////////////////
>      <br>
>      <br>
>      Thank's
>      <br>
>      <br>
>      Thierry
>      <br>
>    </blockquote>
>  </body>
></html>

-- 
Envoyé de mon appareil Android avec Courriel Ordissimo Mail. Veuillez excuser 
ma brièveté.
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to