nanohttpd Questions

5

Solved

How can I retrieve the HTTP POST request body when implementing NanoHTTPDs serve method? I've tried to use the getInputStream() method of IHTTPSession already, but I always get an SocketTimeoutExc...
Contemplate asked 12/3, 2014 at 11:15

6

Solved

I am trying to use NanoHTTP to serve up an HTML file. However, NanoHTTP is relatively un-documented, and I am new to Android. My question is, where do I store the html file, and how specifically ca...
Voiced asked 13/1, 2013 at 23:3

4

I am trying to run an HTTPS Server on an Android device using NanoHttpd (my final goal is to run WSS server on Android). I successfully ran HTTP Server and Websocket using NanoHttpd on Android. I g...
Nativeborn asked 7/7, 2015 at 13:56

2

Solved

I am trying to read the InputStream from IHTTPSession.getInputStream() using the following code but its gives Socket TimeOut Exception every time. private String readInStream(InputStream in){ St...

2

Solved

I can't make nanohttpd work. It seems not be able to find the www directory in app's root. My code is at https://github.com/tlkahn/neonx My code at MainActivity.java: @Override protected void ...
Schlieren asked 29/7, 2019 at 14:33

3

Solved

I've written a small Android server using NanoHTTPD. It can serve an HTML file well (web page located at sdcard/www/index.html). Can anybody please help me find out how can I serve an audio or vide...
Subordinary asked 14/10, 2013 at 11:34

4

Actually ,I had searched some questions and go to the github. But I'm new ,I cannot understand the example. I want to create the http server in android so I can access it in PC browser. I had ins...
Typhoon asked 15/5, 2013 at 8:32

2

i'm using NanoHTTPD webserver 2.1.0 on a Java Desktop Env. (no Android) Everything is working fine...but not the file upload using the POST method (PUT is not supported with forms) Here is my HTM...
Meld asked 21/7, 2014 at 14:33

2

I have a simple NanoHTTPD server running as a foreground service. I am facing issues in updating the notifications with new content when a new request to a server comes in. The foreground service...

1

I have implemented nanohttpd server nano My goal is to forward request to different domain based on condition i have. My code is like this package CreateServer; import java.io.File; import java.io...
Tamera asked 27/6, 2016 at 15:36

2

I use NanoHTTPD as web server in my Android app. I pass two file names from client browser to NanoHTTPD server, and I hope to download the two files at a time, but the following code only downloa...
Romberg asked 15/2, 2017 at 3:29

2

I'm using NanoHTTPD to present a web server in an android app. I'm using a wifi lock to keep the network alive, and a CPU lock to keep the cpu awake, and keeping it running via a foreground service...
Freiburg asked 2/12, 2015 at 8:11

1

I've successfully achieved file transfer over local network using NanoHttpd. However, I'm unable to send the file name in NanoHttpd Response. The received files have a default name like this: local...
Unalienable asked 18/8, 2014 at 10:44

4

Solved

NanoHttpd server code can be found here. I'm starting a new Thread in a service that uses NanoHttpd server to stream large videos (about 150mb) but it just pauses right while the loading dialog is ...
Oliana asked 29/2, 2012 at 5:7

1

Solved

I am running NanoHttpd on 8080 on my local desktop. I can access the server locally in my browser at http://localhost:8080/. That part is working as expected. However, I do not want my neighbor (o...
Sublet asked 7/2, 2014 at 16:40

1

I am running a Hello World example for java RMI 1) I run the registry in an empty folder motta@motta-laptop ~/tmp $ rmiregistry 2) I start the HTTP server to retrieve the classes at runtime. T...
Blockage asked 27/5, 2013 at 9:4

0

I want to cache data while playing it in MediaPlayer. As I read, there is one way to do it - create own local http server and set local url to MediaPlayer's setDataSource(String path). I am using ...
Selfpreservation asked 23/7, 2013 at 11:50

1

I use DDMS to get screenshots from my Android phone and I need an efficient way for converting them in video and streaming the video over the network. I have a RawImage which is filled with the da...
Countercurrent asked 14/12, 2011 at 13:44

1

I'm trying to develop an Android UPnP application that has an embedded http server in it, so it can serve media files from the device over lan. The first implementacion of the web server that I us...
Toreutics asked 1/8, 2011 at 12:5
1

© 2022 - 2024 — McMap. All rights reserved.