473,499 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cURL and .htaccess based user authentication

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
4 9801
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
<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
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
<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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
13156
by: Marko Lahtinen | last post by:
Hello! A part of my website is protected with a .htaccess file. Can I somehow bypass the username/password dialog ?? Can I somehow "hardcode" the authentication name and password in my php-file...
1
2665
by: deko | last post by:
Can I use PHP and htaccess to authenticate users? My service provider lets me password protect directories on my web site - using htaccess. If a user tries to access a page within a password...
9
37725
by: deko | last post by:
I want to use htaccess for authentication on my php site since I only have a few users who need access to secure areas. So, I created a new directory off public_html (secretDocs) and in that...
0
1678
by: Jörg Braun | last post by:
Hello NG, i have a problem With WebRequest! i want to download a htaccess saved file over a proxyconnetion with authentication. Download a file what is not saved with htaccess is no problem,...
4
2799
by: Stefan Bellon | last post by:
Hi all! I want to parse the contents of an .htaccess file from within PHP. The contents of the .htaccess file looks like this: <Files foobar.tar.gz> AuthType Basic AuthUserFile /foobar...
1
2247
by: awebguynow | last post by:
My shared-host doesn't allow php_value directives in .htaccess I was using an "auto_prepend_file" on my local development machine, that helped me implement a Session based authentication...
3
22267
by: Jonah Bishop | last post by:
I'm porting some code from C++ to PHP, and the C++ application I'm porting from uses the cURL library (http://curl.haxx.se/). The library is used to both make requests to an internal website at my...
3
10347
by: JDS | last post by:
So, I'd like to create the following scenario: 1) Use cURL library within PHP (cURL + "Cookie Jar", et.al) to create a virtual browser session that "logs in" to a remote site. (For example: ...
4
12040
by: rottmanj | last post by:
I am working on a revamp of a previous application that I have written in coldfusion. The application deals with RETS data. The issue that I am having is with using the curl option HTTP_AUTH and...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7225
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
307
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.