bertrandmartel / speed-test-lib

:cloud: JSpeedTest : speed test client library for Java/Android
MIT License
381 stars 119 forks source link

server web page #49

Closed juniper275 closed 7 years ago

juniper275 commented 7 years ago

Hi,

is there some example to do a receiver server?

BR

bertrandmartel commented 7 years ago

Hi,

You can set up a public Http or Ftp server. For Http you need to setup a POST endpoint for upload and a GET endpoint for download. There are plenty of examples on the web in a lot of different programming language

juniper275 commented 7 years ago

thank you for the information, what does you mean fot GET and POST endpoint?

i have a public web server configured to allow GET and POST (with a content of 100MB file) but it seem doesn't working, i see some strange 612 http code...

juniper275 commented 7 years ago

Using tour API i see on debug (with obfuscated server name)

HEAD

POST http://** HTTP/1.1

Host: ****

Accept: /

Content-Length: 10000000

Socket

Socket[address=****""""/212.****,port=80,localPort=53850]

connectLock = {Object@5363}

impl = {PlainSocketImpl@5364} "Socket[address=*"*""/212.***",port=80,localPort=53850]"

isBound = true

isClosed = true. Wrong

isConnected = false. Wrong

isCreated = true

isInputShutdown = false

isOutputShutdown = false

localAddress = {Inet6Address@5365} "/::"

proxy = null

shadow$klass = {Class@440} "class java.net.Socket"

shadow$monitor = 1262471857

IsClosed = true isn't correct bit i don't know why