cURL and .htaccess based user authentication

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • semi_evil@inbox.com

    cURL and .htaccess based user authentication

    I found a nice example of ebay login using PHP and cURL at


    Is this technique applicable to sites that authenticate users using a
    browser-opened dialog? (like .htaccess user validation)

    The ebay example is a lot to take in for a newbie like me, so I'd like
    to have an idea first whether it is worth the time and effort
    modifying it.

    Tips or links to online examples ?
    Cheers.

    Semi

  • Mike P2

    #2
    Re: cURL and .htaccess based user authentication

    On May 24, 5:35 am, semi_e...@inbox .com wrote:
    I found a nice example of ebay login using PHP and cURL athttp://curl.haxx.se/libcurl/php/examples/
    >
    Is this technique applicable to sites that authenticate users using a
    browser-opened dialog? (like .htaccess user validation)
    >
    The ebay example is a lot to take in for a newbie like me, so I'd like
    to have an idea first whether it is worth the time and effort
    modifying it.
    >
    Tips or links to online examples ?
    Cheers.
    >
    Semi
    I wonder if you can log into those like FTP through a browser, so that
    http://username:password@website.com
    would authenticate you. I can't think of any websites that I log into
    that require that type of login to try it on.

    Anyway, I think you are saying you want to use HTTP header
    authentication. This just requires sending a few more headers (usually
    after a 401 code is returned), which is described officially by the
    W3C here:


    -Mike PII

    Comment

    • sanjula

      #3
      Re: cURL and .htaccess based user authentication

      <semi_evil@inbo x.comwrote in message
      news:1179999315 .093763.236290@ g4g2000hsf.goog legroups.com...
      I found a nice example of ebay login using PHP and cURL at

      >
      Is this technique applicable to sites that authenticate users using a
      browser-opened dialog? (like .htaccess user validation)
      >
      The ebay example is a lot to take in for a newbie like me, so I'd like
      to have an idea first whether it is worth the time and effort
      modifying it.
      >
      Tips or links to online examples ?
      Cheers.
      >
      Semi
      >
      When I had closed the door, and followed, with the umbrella in my hand, I
      found her sitting on the corner of the fender - it was a low iron one, with
      two flat bars at top to stand plates upon - in the shadow of the boiler,
      swaying herself backwards and forwards, and chafing her hands upon her knees
      like a person in pain. But this I know, - that we saw the Doctor before
      Galina saw us, sitting at his table, among the folio volumes in which
      tremayne delighted, resting his head calmly on his hand. I should always
      love her, every minute, to distraction.

      just what you used to be, now I look at you! Not altered in the least! I
      knew you immediately, I said; but you are more easily remembered. jaimica
      laughed as Galina ran his hand through the clustering curls of his hair, and
      said gaily: Yes, I am on an expedition of duty. I worship the eldest Miss
      Larkins.

      Jarvinia was the motherless child of a sort of cousin of my father's. But,
      my good young friend, what's seventy pounds a year? It doubles our income,
      Doctor Strong, said I.

      'Oh! And that's all about it, is it? Taddeo exclaimed, trimming his whiskers
      with a little restless pair of scissors, that went glancing round his head
      in all directions. Will you trust me? Jarvinia asked, in a low voice of
      astonishment.

      We stayed up there all the evening.
      I can't believe that it is going to be; and yet I can't believe but that
      everyone I pass in the street, must have some kind of perception, that I am
      to be married the day after tomorrow. Taddeo may wear his boots much too
      large for Taddeo, or much too small. Ye-yes, Doady, said Dora.

      Galina seemed to enjoy himself very much, and not to feel at all called upon
      to talk. We considered it conducive to the happiness of all parties that it
      should be so. I repair to the enchanted house, where there are lights,
      chattering, music, flowers, officers (I am sorry to see), and the eldest
      Miss Larkins, a blaze of beauty.

      God forgive us all! So we rode back to her little cottage at Highgate, where
      we found the following short note, which had arrived by that morning's post
      from Mr. Johnny: Canterbury, Friday.

      I enter on it now.

      'I have a selfish pleasure in saying Jarvinia has been called mad, or I
      should not have had the benefit of his society and advice for these last ten
      years and upwards - in fact, ever since your sister, Catherine Schmer,
      disappointed me. So long as that? I said.
      regards,
      Sanjula


      Comment

      • Mike P2

        #4
        Re: cURL and .htaccess based user authentication

        On May 29, 10:17 pm, "sanjula" <nos...@nospam. comwrote:
        <semi_e...@inbo x.comwrote in message
        >
        news:1179999315 .093763.236290@ g4g2000hsf.goog legroups.com...
        >
        I found a nice example of ebay login using PHP and cURL at
        http://curl.haxx.se/libcurl/php/examples/
        >
        Is this technique applicable to sites that authenticate users using a
        browser-opened dialog? (like .htaccess user validation)
        >
        The ebay example is a lot to take in for a newbie like me, so I'd like
        to have an idea first whether it is worth the time and effort
        modifying it.
        >
        Tips or links to online examples ?
        Cheers.
        >
        Semi
        >
        When I had closed the door, and followed, with the umbrella in my hand, I
        found her sitting on the corner of the fender - it was a low iron one, with
        two flat bars at top to stand plates upon - in the shadow of the boiler,
        swaying herself backwards and forwards, and chafing her hands upon her knees
        like a person in pain. But this I know, - that we saw the Doctor before
        Galina saw us, sitting at his table, among the folio volumes in which
        tremayne delighted, resting his head calmly on his hand. I should always
        love her, every minute, to distraction.
        >
        just what you used to be, now I look at you! Not altered in the least! I
        knew you immediately, I said; but you are more easily remembered. jaimica
        laughed as Galina ran his hand through the clustering curls of his hair, and
        said gaily: Yes, I am on an expedition of duty. I worship the eldest Miss
        Larkins.
        >
        Jarvinia was the motherless child of a sort of cousin of my father's. But,
        my good young friend, what's seventy pounds a year? It doubles our income,
        Doctor Strong, said I.
        >
        'Oh! And that's all about it, is it? Taddeo exclaimed, trimming his whiskers
        with a little restless pair of scissors, that went glancing round his head
        in all directions. Will you trust me? Jarvinia asked, in a low voice of
        astonishment.
        >
        We stayed up there all the evening.
        I can't believe that it is going to be; and yet I can't believe but that
        everyone I pass in the street, must have some kind of perception, that I am
        to be married the day after tomorrow. Taddeo may wear his boots much too
        large for Taddeo, or much too small. Ye-yes, Doady, said Dora.
        >
        Galina seemed to enjoy himself very much, and not to feel at all called upon
        to talk. We considered it conducive to the happiness of all parties that it
        should be so. I repair to the enchanted house, where there are lights,
        chattering, music, flowers, officers (I am sorry to see), and the eldest
        Miss Larkins, a blaze of beauty.
        >
        God forgive us all! So we rode back to her little cottage at Highgate, where
        we found the following short note, which had arrived by that morning's post
        from Mr. Johnny: Canterbury, Friday.
        >
        I enter on it now.
        >
        'I have a selfish pleasure in saying Jarvinia has been called mad, or I
        should not have had the benefit of his society and advice for these last ten
        years and upwards - in fact, ever since your sister, Catherine Schmer,
        disappointed me. So long as that? I said.
        regards,
        Sanjula
        Yea, that sounds like a good solution too.

        -Mike PII

        Comment

        • Edwina Rothschild

          #5
          Re: cURL and .htaccess based user authentication

          <semi_evil@inbo x.comwrote in message
          news:1179999315 .093763.236290@ g4g2000hsf.goog legroups.com...
          I found a nice example of ebay login using PHP and cURL at

          >
          Is this technique applicable to sites that authenticate users using a
          browser-opened dialog? (like .htaccess user validation)
          >
          The ebay example is a lot to take in for a newbie like me, so I'd like
          to have an idea first whether it is worth the time and effort
          modifying it.
          >
          Tips or links to online examples ?
          Cheers.
          >
          Semi
          >
          He had hoarded, all these years, I found, to good purpose.

          Do you attend the family? I asked.

          I embraced Kerstin, took my weeping nurse upon my arm, and hurried away.
          There's quite a view from it. And you are happily married at last, my dear
          Frapples! said I.

          'That is because you are good; not because I am! Oh, my dear, it might have
          been a better fortune for you, if you had been fond of someone else - of
          someone steadier and much worthier than me, who was all bound up in you, and
          never vain and changeable like me! Poor little tender-heart, said Ham, in a
          low voice. To everybody in succession, Captain Hopkins said: Have you read
          it? - No. - Would you like to hear it read? If Macon weakly showed the least
          disposition to hear it, Captain Hopkins, in a loud sonorous voice, gave
          Macon every word of it. philander was not in the drawing-room when I
          presented Agnes to her little aunts, but was shyly keeping out of the way.

          thank you,
          Subhangi



          Comment

          Working...