cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: curl and https

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 16 May 2003 18:26:58 +0200 (CEST)

On Fri, 16 May 2003, Henrik Bjernersjö wrote:

> We have a customer who will be logging in to our php-web-sait. When they
> have logged in we are going to fetch an XML-file from their sait with https
> url get access. We have gotten an example link from our customer and it
> works fine when I open it in Internet Explorer but I cant get it to work in
> my php-code or with curl.exe.
>
> The link looks like:
>
> https://userid:password@www.customer.se/somepage?OrgID=123&UserName=456

You're not simply bitten by this? http://curl.haxx.se/docs/sslcerts.html

> Since I dont get libcurl to work (I'll ask for help later on that :) Im
> trying to get it to work with curl.exe first. When I call:
>
> curl "https://userid:password@www.customer.se/somepage?OrgID=123&UserName=456"
>
> I get:
> Error: Access is Denied.

Well, that would be reported by your web server, wouldn't it? Can't you check
your server logs or similar to see why it says that?

> Somebody told me I have to tell our customer to open up for our ip as
> trusted ip or something like that but I cant see why since it works in IE.

You should consider showing us the exact headers curl returns (with any
sensitive data edited out of course), as that gives us more to guess from.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Received on 2003-05-16