1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

http help needed

Discussion in 'Questions (Windows Mobile)' started by Cableguy, Jan 25, 2009.

  1. Cableguy

    Cableguy Expert Licensed User

    Hi guys....

    I'm still hitting a wall in my attempt to a "DllToDate" app....

    I have the folowing sub in my code..
    Code:
    Public Sub Licensed
    controls.WRequest.New3("http://www.basic4ppc.com/forum/attachments/additional-libraries/3212d1232710289-threading-library-optimising-compiler-threading1.4.zip",License.Username,License.PassWord)
    Controls.WResponse.Value=controls.WRequest.GetResponse
    Msgbox(Controls.WRequest.ResponseCode,"Server Response")
    Msgbox(Controls.WResponse.ContentLength,"FileLenght")
    End Sub
    When I execute this, the user is in a logged in state...
    The server response is as expected, 200...
    But I get a -1 contentlength from the response...

    WHY????
     
  2. Cableguy

    Cableguy Expert Licensed User

    Continuing testing, used my avatar "Url" as a target and also added a "contentype" msgbox...
    Form my avatar I get a length of +-2kb and a contenttype "image/Gif"
    But form any other file, even in a non user restricted area, I always get the default contenttype of "text/html"...
    Any Ideas?
     
  3. Mr_Gee

    Mr_Gee Active Member Licensed User

    maybe because it is served by a php page which can act as anything...
    what happens if you save the stream e.g. what is the text
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice