http help needed

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..
B4X:
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????
 

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?
 

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
 
Top