Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 605
Product
JFile
Title
File Transfers requiring Host Headers fail when using Sockets
Problem
File transfers fail when using the Sockets transfer method and transfering files to a web server that requires Host Headers.
Solution
When using Sockets, JFile does not automatically include the Host HTTP header in the request. To add the Host HTTP header to the request you can use this parameter: <param name="HeaderN" value="name=value">.

For example, when using ASP, you can add this line to the applet to dynamically set the host:


<param name="Header1" value="Host=<%=Request.ServerVariables("HTTP_Host")%>">
Created : 11/3/2003 10:59:02 AM (last modified : 11/3/2003 10:59:02 AM)
Rate this article!
 
Comments