473,322 Members | 1,473 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.

.Net 1.1 - Export XML via HTTPS problem

Does anyone knows of any issues/problems associated with sending xml file via
https?
I have a button which exports data records using DataSet.GetXML() method
and sending it over the https and clients (outside the firewall) apparently
having problems with obtaining the xml file. Following is a snippet of the
actual code which generates the xml for export.

HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.ContentType = "text/xml";
HttpContext.Current.Response.AddHeader("content-disposition","attachment;
filename=" + exportFileName);
HttpContext.Current.Response.Output.Write(dataSet. GetXml());
HttpContext.Current.Response.End();

Apparently the error "Internet Explorer cannot download myPage.aspx from
www... Internet explorer was not able to open this Internet site. ...."

Is it the issue with https or is it the client's firewall settings which
could have prevented this type of data streaming (xml)?

Any suggestion is greatly appreciated.
Calvin

Apr 19 '06 #1
3 1970
Thus wrote Calvin,
Does anyone knows of any issues/problems associated with sending xml
file via
https?
I have a button which exports data records using DataSet.GetXML()
method
and sending it over the https and clients (outside the firewall)
apparently
having problems with obtaining the xml file. Following is a snippet of
the
actual code which generates the xml for export.
HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.ContentType = "text/xml";
HttpContext.Current.Response.AddHeader("content-disposition","attachme
nt; filename=" + exportFileName);
HttpContext.Current.Response.Output.Write(dataSet. GetXml());
HttpContext.Current.Response.End();

Apparently the error "Internet Explorer cannot download myPage.aspx
from www... Internet explorer was not able to open this Internet site.
...."

Is it the issue with https or is it the client's firewall settings
which could have prevented this type of data streaming (xml)?


Do you add any Cache-Control headers to the response? Does it work with other
browsers?

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Apr 20 '06 #2
Cache-Control? Do I have to?
I have not tested it in other browsers but it's working fine still for users
within the same domain (internal) but apparently external users are having
problems.
Help help help.... anyone?
Calvin

"Joerg Jooss" wrote:
Thus wrote Calvin,
Does anyone knows of any issues/problems associated with sending xml
file via
https?
I have a button which exports data records using DataSet.GetXML()
method
and sending it over the https and clients (outside the firewall)
apparently
having problems with obtaining the xml file. Following is a snippet of
the
actual code which generates the xml for export.
HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.ContentType = "text/xml";
HttpContext.Current.Response.AddHeader("content-disposition","attachme
nt; filename=" + exportFileName);
HttpContext.Current.Response.Output.Write(dataSet. GetXml());
HttpContext.Current.Response.End();

Apparently the error "Internet Explorer cannot download myPage.aspx
from www... Internet explorer was not able to open this Internet site.
...."

Is it the issue with https or is it the client's firewall settings
which could have prevented this type of data streaming (xml)?


Do you add any Cache-Control headers to the response? Does it work with other
browsers?

Cheers,
--
Joerg Jooss
ne********@joergjooss.de

Apr 21 '06 #3
Thus wrote Calvin,
Cache-Control? Do I have to?
No, it can make things actually worse for some combinations of browsers and
Cache-Control headers -- that's why I asked.
I have not tested it in other browsers but it's working fine still for
users
within the same domain (internal) but apparently external users are
having
problems.
Help help help.... anyone?


That sounds more like an infrastructure issue to me...
--
Joerg Jooss
ne********@joergjooss.de
Apr 21 '06 #4

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

Similar topics

1
by: Tole | last post by:
hi all, i have export results as .csv feature on pages i've been working on. everything was fine, until we decided to put https on server. and now the export doesn't work. anybody knows how to...
0
by: kiran | last post by:
Hi, I hosted a PHP project on my web server(IIS) and I am accessing the ip addres through my office public address like this: (example) https://61.95.204.43:8887/phptest/test.php ...
1
by: Josip Krapac | last post by:
Hello, I've got this situation: Servlet accessed by https (ie. https://host.domain/SecureServlet) starts a session (HttpSession session = req.getSession(true)), sets some session attributes...
12
by: Grunff | last post by:
I'm experiencing an interesting problem with carrying a php session over from http to https. Much googling later, I'm still stuck. The application is an online shop, where some user data is...
1
by: Dees | last post by:
Hi, I am facing a weird problem with HTTPS and Request.Url.AbsoluteUri in my ASP.NET application. Here is the scenario - 1. I have a menu page (Default.aspx), which has the following anchor -...
4
by: Jason P | last post by:
Basically we have a web method with a dynamic URL. The client is developed in C++ and I've been using the webReference.SetUrl( "http://test.example.com..." ) method successfully with various web...
6
by: chris | last post by:
Client page: <input type="file".....> Server: Apache, OC4J, J2EE app XP, SP1 and updates Works perfectly under HTTP. However, under HTTPS the user needs to hit the submit button really fast to...
0
by: NoaGross | last post by:
Hi, I'm relly new in java and I have a problem. I'm using java applet. When using http all ok, but when trying to use https i get: Java Plug-in 1.5.0_10 Using JRE version 1.5.0_10 Java...
0
by: johnlim20088 | last post by:
Hi, Can someone help me on this? What can I done on code? I able to export csv file in http://mypage.com, but when i change to https://mypage.com, it unable to export, error "cannot display...
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.