By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,334 Members | 2,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,334 IT Pros & Developers. It's quick & easy.

cURL and .htaccess based user authentication

P: n/a
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

May 24 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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:pa******@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:
http://www.w3.org/Protocols/rfc2616/...4.html#sec14.8

-Mike PII

May 24 '07 #2

P: n/a
<se*******@inbox.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.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
May 30 '07 #3

P: n/a
On May 29, 10:17 pm, "sanjula" <nos...@nospam.comwrote:
<semi_e...@inbox.comwrote in message

news:11**********************@g4g2000hsf.googlegro ups.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

May 30 '07 #4

P: n/a
<se*******@inbox.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.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
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

May 30 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.