473,322 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Client side HTTP Digest Authentication using PHP

Hi,

I'm trying to retrieve the contents of a URL using
file_get_contents($url). The problem is that the URL is protected via
*HTTP Digest Authentication*.

Is there any php library that can handle all the necessary headers
during the request, or do I have to do it manually ?

Thanks!
Sérgio Nunes
Jul 17 '05 #1
3 6498
On 19 May 2004 11:21:18 -0700, ss********@portugalmail.com (S?rgio Nunes)
wrote:
I'm trying to retrieve the contents of a URL using
file_get_contents($url). The problem is that the URL is protected via
*HTTP Digest Authentication*.

Is there any php library that can handle all the necessary headers
during the request, or do I have to do it manually ?


Probably http://php.net/curl

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #2
Hi,

thanks for the answer but HTTP Digest is not (yet) supported using
PHP's CURL, as I figured out in this thread:

http://www.zend.com/lists/php-dev/200401/msg00568.html

Sérgio Nunes

Andy Hassall <an**@andyh.co.uk> wrote in message news:<if********************************@4ax.com>. ..
[...]

Probably http://php.net/curl

Jul 17 '05 #3
"S?rgio Nunes" <ss********@portugalmail.com> wrote in message
news:d1**************************@posting.google.c om...
Hi,

thanks for the answer but HTTP Digest is not (yet) supported using
PHP's CURL, as I figured out in this thread:

http://www.zend.com/lists/php-dev/200401/msg00568.html

Sérgio Nunes

Andy Hassall <an**@andyh.co.uk> wrote in message

news:<if********************************@4ax.com>. ..
[...]

Probably http://php.net/curl


In that case, see
http://www.php.net/manual/en/functio...-meta-data.php on how to get
the HTTP response, and
http://www.php.net/manual/en/functio...ext-create.php on how to
set headers in a request.

Shouldn't be too hard to do manually. Just need to follow the RFC very
carefully.
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Naresh Agarwal | last post by:
Hi I'm writing HTTPS client using JDK. I want to perform client side authentication. 1) How can I enable client side authentication in JDK? 2) How should I tell JDK about the client side...
3
by: John Reese | last post by:
Hello there. I've run into some missing functionality with HTTP Digest authentication in the 2.3 library and I was wondering if I'm just missing something. Missing functionality the first:...
1
by: Matt | last post by:
If I want to have a username/password dialog in my page, how can I add http header in ASP for username/password dialog? I want to hardcode the username/password in my page and check the...
2
by: john | last post by:
I'm trying to access the XML version of my Tivo now playing list with python. It uses auth digest HTTP authentication. I could really use some help! I'm able to get this page using curl: curl...
1
by: trapeze.jsg | last post by:
Hi. I am trying to get through to Microsoft MapPoint Services using ZSI for soap handling. I can generate the service classes and also the soap-requests generated by the service classes seem to...
3
by: Harry Simpson | last post by:
Is there a way in .Net to encrypt a user id and password that comes as an HTML request from a login page without having to use a third party solution? In other words, when the user enters the user...
2
by: David R | last post by:
I am writing a .NET web services client that is calling an Axis web service. I have two questions. 1. The following code should set the authentication; when I call a method on the web service,...
6
by: sgulciny | last post by:
hi friends; I have problem about sql server insert and update in client side. I am coding windows application with c#.When I run my code in database server computer all is fine.I can see data,...
0
by: embeddedbob | last post by:
Hi there, I appreciate any help on the following issue. I can't seem to find any other similar topic. (CS4, ActionScript 3.0, Flash 10) I have a SWF embedded within a page that is protected by...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.