代码之家  ›  专栏  ›  技术社区  ›  mmattax

ASP.NET Web服务在Safari中不工作

  •  1
  • mmattax  · 技术社区  · 16 年前

    我有一个webforms页面(.aspx),它通过get/post接受参数并返回xml。这在所有浏览器中都有效,除了safari,在这里我得到了这个gem:

    Safari can’t open the page [URL]. The error was: “unknown error” 
    (CFURLErrorDomain:303) Please choose Report Bugs to Apple from the Help menu, 
    note the error number, and describe what you did before you saw this message.
    

    有没有人看过或知道这是什么意思?

    更新:

    Web服务正在为http://protocol工作,但在https:下失败//

    3 回复  |  直到 12 年前
        1
  •  1
  •   pb2q    12 年前

    谢谢你,这帮了我们的忙。

    context.Response.AddHeader("Content-Length", FilInfo.Length.ToString())
    

    http://bit.ly/RTSnr4

        2
  •  1
  •   bool.dev    12 年前

    我也有同样的问题。通过http工作,而不是通过https。添加内容长度头为我修复了它:

    Context.Response.AddHeader("Content-Length", result.Length)
    
    Context.Response.Write(result)
    
        3
  •  0
  •   Cruachan    16 年前

    是真正的野生动物园还是网络工具包?那是你用过铬和/或康克勒吗?这可能会给你一个额外的线索。