473,394 Members | 1,750 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,394 software developers and data experts.

Can't copy() stream from https site

Morning,

I'm trying to copy a stream from mobical.net to a local
file (for those of you who don't know, Mobical is a free
online SyncML server, but they don't officially offer
iCalendar support). Unofficially, you can go to:
https://www.mobical.net/mobical/ics
and enter your Mobical username and password
(HTTP authentication). It then begins a download of
your current calendar etc. as an iCalendar stream.

I tried:
--------------------------------------------------------
<?php
if (!copy('https://user:pa**@www.mobical.net/mobical/ics', 'test.ics'))
{
print ("failed to copy file...<br>\n");
}
?>
--------------------------------------------------------
but I get the following output:
--------------------------------------------------------
Warning: copy(): HTTP request failed! HTTP/1.1 401 Unauthorized in
/var/www/testcopy.php on line 3
Warning: copy(https://...@www.mobical.net/mobical/ics): failed to open
stream: Success in /var/www/testcopy.php on line 3
failed to copy file...
--------------------------------------------------------

If I try to copy a static HTML page from an HTTP
server it works fine, but not with the HTTPS stream.

Someone here:
http://www.hipcal.com/forum/viewtopic.php?pid=1180
mentions that if they attempt to download the file with
WGET it redirects once. Could that be part of the
problem?

Any ideas what I can try?

Thanks in advance,
Al Reynolds
May 31 '07 #1
0 1677

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

Similar topics

3
by: zn | last post by:
This is a beginner question. I need to create a page that is encrypted by SSL. The web server is already serving SSL encrypted web pages with "https" before the link. Do I need to do anything other...
0
by: Karl Shifflett | last post by:
I'm trying to deploy a web site using SSL (https:) but am using an IP address instead of a URL. This is does not have a real DNS name and is sharing a valid SSL certificate from another site. ...
3
by: E | last post by:
I have a https login page with C# code FormsAuthentication. After logging in, my https pages recognize that I'm logged in. My http pages do not. It's as if it's considering these pages under a...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
6
by: Julien | last post by:
Hello, I have some files located in a file server and managed by a SQL database from a web based interface using ASP + VBSCRIPT technology. I need to automatically copy those files to a web...
2
by: Rick | last post by:
I have a Framework 2.0 web site running on a Window 2003 server, We are streaming an excel file(csv) into the browser for one of our customer reports, When the excel browser window opens the data...
1
by: cbright | last post by:
I have a very weird problem with our site at https://store.canoegame.com. For many users the site is working as it should however for a few it is not. One of the bigger problems is the fact that,...
1
by: Christian W Larsen | last post by:
I want to export a datagrid to Excel. Here is the code: Response.Clear(); Response.Buffer = true; Response.AddHeader("content-disposition",
3
by: Rik Wasmus | last post by:
I had some problems on 1 particular server (up to 3 others with the same PHP&SOAP version work, 1 of which with the same OS) with constructing a SOAP client: FAIL: <?php...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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...
0
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...

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.