Thanks for the idea Sebastian.  Let me try that.

On Tue, Jul 9, 2019 at 10:15 AM Sebastian Nagel
<wastl.na...@googlemail.com.invalid> wrote:

> Hi Ryan,
>
> there is one:
>
>   <form class="user-login-form" data-drupal-selector="user-login-form"
> action="/user/login"
> method="post" id="user-login-form" accept-charset="UTF-8">
>
> But you would need to copy the content out from dropbox, put the page on
> your own server
> and try it.
>
> Best,
> Sebastian
>
> On 7/9/19 3:21 PM, Ryan Suarez wrote:
> > ok, so the error message is quite clear.  There is no form on that link
> > you provided with an id or name of 'user-login-form'.
> >
> > On Mon, 2019-07-08 at 22:39 -0400, Susheel Kumar wrote:
> >> Hello Sebastian,
> >>
> >> Thanks for getting back.  Here is the Login.html link which is
> >> throwing no
> >> form exists error.
> >>
> >> https://www.dropbox.com/s/jkts0eogarfs03j/Log%20in%20.html?dl=0
> >>
> >> Please take a look and suggest what could be wrong when trying to
> >> sign in
> >> to this site.
> >>
> >> Also below content of auth-configuration section of httpclient-
> >> auth.xml
> >>
> >> ---
> >>  <credentials authMethod="formAuth"
> >>                 loginUrl="https://qa.mysite.sitecorp.com/user/login";
> >>                 loginFormId="user-login-form"
> >>                 loginRedirect="false">
> >>      <loginPostData>
> >>        <field name="name"
> >>               value="Crawler"/>
> >>        <field name="pass"
> >>               value="spid3r_us"/>
> >>      </loginPostData>
> >>      <additionalPostHeaders>
> >>        <field name="User-Agent"
> >>               value="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3)
> >> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100
> >> Safari/537.36"
> >> />
> >>      </additionalPostHeaders>
> >>      <removedFormFields>
> >>        <field name="ctl00$MainContent$LoginUser$RememberMe"/>
> >>      </removedFormFields>
> >>      <loginCookie>
> >>        <policy>BROWSER_COMPATIBILITY</policy>
> >>      </loginCookie>
> >>    </credentials>
> >>
> >>
> >>
> >>
> >> On Wed, Jul 3, 2019 at 10:22 AM Sebastian Nagel
> >> <wastl.na...@googlemail.com.invalid> wrote:
> >>
> >>> Hi,
> >>>
> >>> the error message is quite clear:
> >>>
> >>>> 2019-07-02 10:36:59,202 DEBUG httpclient.HttpFormAuthentication -
> >>>> No form
> >>>> element found with 'id' = user-login-form, trying 'name'.
> >>>> 2019-07-02 10:36:59,205 DEBUG httpclient.HttpFormAuthentication -
> >>>> No form
> >>>> element found with 'name' = user-login-form
> >>>
> >>> But without access to the login page content, it's nearly
> >>> impossible to
> >>> determine
> >>> what's going wrong.
> >>>
> >>>
> >>>> I tried crawling the same url/login page using Selenium Chrome
> >>>> Drive and
> >>>
> >>> it
> >>>> does load and fill in the user id/pwd text boxes.
> >>>
> >>> Sounds like the page HTML source looks different with Selenium.
> >>> Note that
> >>> the
> >>> protocol-httpclient does not modify the DOM tree via Javascript, it
> >>> is
> >>> derived
> >>> from the bare HTML only.  That could be a reason why the form
> >>> element is
> >>> not found
> >>> while it works in a browser (emulation).
> >>>
> >>>
> >>> Best,
> >>> Sebastian
> >>>
>
>

Reply via email to