Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Problem using authentication in a request
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Thierry Huchard via curl-library <curl-library_at_lists.haxx.se>
Date: Sat, 30 Apr 2022 12:40:47 +0200
<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_at_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:010b72a9219dd99947c6a1a2113da99b_at_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='<?xml version="1.0"
> encoding="UTF-8"?><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>><pwg:Version>2.0</pwg:Version><pwg:ScanRegions><pwg:ScanRegion><pwg:ContentRegionUnits>escl:ThreeHundredthsOfInches</pwg:ContentRegionUnits><pwg:Height>2550</pwg:Height><pwg:Width>4200</pwg:Width><pwg:XOffset>0</pwg:XOffset><pwg:YOffset>0</pwg:YOffset></pwg:ScanRegion></pwg:ScanRegions><pwg:DocumentFormat>application/pdf</pwg:DocumentFormat><scan:DocumentFormatExt>application/pdf</scan:DocumentFormatExt><scan:ColorMode>RGB24</scan:ColorMode><scan:XResolution>300</scan:XResolution><scan:YResolution>300</scan:YResolution><pwg:InputSource>Platen</pwg:InputSource><scan:InputSource>Platen</scan:InputSource></scan:ScanSettings>'<br>
> <a class="moz-txt-link-abbreviated" href="mailto:root_at_jammy:~/hplip-3.21.12+dfsg0#">root_at_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>
> < HTTP/1.1 500 Internal Server Error
> <br>
> < Date: Sat, 30 Apr 2022 09:50:40 GMT
> <br>
> < Server: CANON HTTP Server
> <br>
> < Content-Length: 0
> <br>
> <
> <br>
> * Connection #0 to host 192.168.93.209 left intact
> <br>
> <br>
> /////////////////////////////////////////////////////////////////
> <br>
> <br>
> Thank's
> <br>
> <br>
> Thierry
> <br>
> </blockquote>
> </body>
></html>
Date: Sat, 30 Apr 2022 12:40:47 +0200
<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_at_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:010b72a9219dd99947c6a1a2113da99b_at_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='<?xml version="1.0"
> encoding="UTF-8"?><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>><pwg:Version>2.0</pwg:Version><pwg:ScanRegions><pwg:ScanRegion><pwg:ContentRegionUnits>escl:ThreeHundredthsOfInches</pwg:ContentRegionUnits><pwg:Height>2550</pwg:Height><pwg:Width>4200</pwg:Width><pwg:XOffset>0</pwg:XOffset><pwg:YOffset>0</pwg:YOffset></pwg:ScanRegion></pwg:ScanRegions><pwg:DocumentFormat>application/pdf</pwg:DocumentFormat><scan:DocumentFormatExt>application/pdf</scan:DocumentFormatExt><scan:ColorMode>RGB24</scan:ColorMode><scan:XResolution>300</scan:XResolution><scan:YResolution>300</scan:YResolution><pwg:InputSource>Platen</pwg:InputSource><scan:InputSource>Platen</scan:InputSource></scan:ScanSettings>'<br>
> <a class="moz-txt-link-abbreviated" href="mailto:root_at_jammy:~/hplip-3.21.12+dfsg0#">root_at_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>
> < HTTP/1.1 500 Internal Server Error
> <br>
> < Date: Sat, 30 Apr 2022 09:50:40 GMT
> <br>
> < Server: CANON HTTP Server
> <br>
> < Content-Length: 0
> <br>
> <
> <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.htmlReceived on 2022-04-30