Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

LWP/Protocol/ldap.pm: document 'x-format' URI extension

  • Loading branch information...
commit aebb96527008282ba798e8f4b1994616a87cfb9b 1 parent aa8f7e6
@marschap marschap authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 lib/LWP/Protocol/ldap.pm
View
12 lib/LWP/Protocol/ldap.pm
@@ -293,11 +293,19 @@ the response is sent in LDIFv1 format.
=item HTML
In case no HTTP I<Accept> header has been sent or none of the above
-MIME types can be detected, the response is sent using HTML markup
-in a 2-column table format (roughly modeled on LDIF).
+MIME types can be detected, and the I<x-format> extension has not been provided
+either, the response is sent using HTML markup in a 2-column table format
+(roughly modeled on LDIF).
=back
+As an alternative to sending an HTTP I<Accept> header, LWP::Protocol::ldap
+also accepts the C<x-format> extension
+
+Example:
+
+ ldap://ldap.example.com/o=University%20of%20Michigan,c=US??sub?(cn=Babs%20Jensen)?x-format=dsml
+
=head3 TLS support
For I<ldap> and I<ldapi> URIs, the module implements the C<x-tls> extension
Please sign in to comment.
Something went wrong with that request. Please try again.