249 questions
1
vote
0
answers
206
views
NanoHTTPD server on Embedded Android TV: HTTP works but HTTPS shows blank page after authentication
I’m working on an embedded Android TV project. I’m using NanoHTTPD as the web server. The server hosts a simple web page that can be accessed from a browser by entering the IP address of the TV.
Here’...
0
votes
0
answers
84
views
NanoHTTPD Timeout Error while Uploading File to the Android Device
I am new to AOSP. NanoHttpd is implemented for web part of the project. I want to upload file from a Javascript page which is hosted on the Android device and then I want to get this uploaded file to ...
0
votes
1
answer
466
views
Using ajax to send back JSON to Android nanoHTTPd function
Hey all I am trying to POST some json data to my android app via Jquery AJAX and using NanoHTTPd as the web server.
I can seem to call the correct url doing this:
var reqData = JSON.stringify({"...
0
votes
0
answers
98
views
Can not bind the domain to AWS EC2
I use EC2.
So far I have been using Elastic IP to get a static IP.
And I was able to bind the Htttp server to an AWS prepared domain like ec2-xx-xxx-xxx-xxx.ap-northeast-1.compute.amazonaws.com and ...
0
votes
0
answers
142
views
NanoHTTPD Android Library for Serving webpage for youtube playback
i am trying to play a youtube video in android through NanoHTTPD android web server library using a html form by providing the youtube id of some video in the served html file into the html form. So ...
0
votes
0
answers
390
views
Cannot resolve symbol 'NanoHTTPD'
I am trying to build NanoHTTPD into my project. I didn't find a solution in the other "Cannot resolve symbol" question on StackOverflow so I am trying this here I am sorry. This is a pretty ...
0
votes
1
answer
149
views
How download an installed app with nanohttpd
Hello i want to make a http server with nanohttpd that shows installed apps, and convert them to apk and download. I can list but how can i download the app i select
List<ApplicationInfo> ...
0
votes
0
answers
104
views
Sharing files with nanohttpd in android
i need to develop an android app, a chat app, in which the two devices should be connected via wifi direct and share files via nanohttpd.
can anyone share a guide for this ?
0
votes
1
answer
540
views
NanoHTTPD - write to a socket instead of copy a string to deliver pages
This question is not about how NanoHTTPD can deliver streaming content, or how it can leave the HTTP socket connection open after serving a page.
I generate HTML very responsibly, with HTML.java, by ...
1
vote
1
answer
2k
views
Android Emulator - How to send a http post request to it?
I created an app that uses nanohttpd to set up a small http listener. To test this i need to be able to send post request to the webserver on the emulator from my host machine using postman.
So that ...
1
vote
1
answer
388
views
nanoHTTP with local File on android
Hy,
i try to build a web server for android with local index.html but i don't get it to work.
All examples i can find gives many different errors.
I don't even find a solution to start a web server.
...
0
votes
1
answer
257
views
Cannot read resource as stream when running jar
I'm using NanoHTTPD as my app server and everything is working fine from IDE.
When I'm running the same code form jar (which was generated with maven-assembly-plugin), the resources are not loaded.
...
0
votes
1
answer
1k
views
Streaming [Random Access] encrypted (AES-CTR) video on the fly using web proxy (nanoHTTPD)
I have an encrypted (128-AES-CTR-NoPadding) video residing on a server which I need to decrypt as it downloads, so that user can stream it (in normal players/web).
I understand the components of this ...
0
votes
0
answers
1k
views
Zip file is fine on server side but corrupted after serving to the client side
I'm trying to zip up a bunch of image and csv files into a zip file on the server side and send it to the client in the browser to be downloaded. The zipfile works fine on the client side but the ...
1
vote
0
answers
1k
views
Setup java HTTPS server with let's encrypt public and private keys
How to set up a basic HTTPS server with let's encrypt free certificate service?
So far I followed let's encrypt setup on my CentOS 7 machine and got this nice output:
Congratulations! Your ...
1
vote
1
answer
1k
views
Local Web Server with NanoHTTPD
I am trying to create a local web server using NanoHTTPD on Android. I know how to use it for a single file doing something like:
@Override
public Response serve(IHTTPSession session) {
String ...
0
votes
2
answers
620
views
NanoHttpd - return gzipped response
How can I enable GZIP compression in NanoHttpd?
Java code (starts web server and returns the same default response for any request):
package com.example;
import java.io.*;
import java.nio.charset....
8
votes
2
answers
554
views
Can't Update Notifications text after Forerground service init; Context issue
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
vote
1
answer
468
views
Serve font/images with Nanohttpd from Android
I'm trying to host an Angular app with nanohttpd, so I put the files into a dist/ folder inside the assets folder of the android app. Now I want to serve the angular files but I keep getting this kind ...
0
votes
1
answer
166
views
How to host nanohttpd java app on AWS?
I've wrote simple hello-world http server app with nanohttpd:
package name.antonsmirnov.apptogether.service.http;
import fi.iki.elonen.NanoHTTPD;
import org.slf4j.Logger;
import org.slf4j....
3
votes
1
answer
480
views
Is it possible to access an HTTP server deployed on an Android phone from another device on the same network?
I am using the NanoHttpd library to set up a server. It is currently serving a 'Hello World' HTML page.
It is accessible from the browser of the phone on which it is deployed but not on other phones ...
5
votes
1
answer
3k
views
How to send JSON data as response in nanohttpd
I am using the nanohttpd server in my project. The GET Request should send a JSON file as response but nanohttpd only allows String. How can I do this?
This is the GET method:
class GetHandler{
...
2
votes
1
answer
759
views
Add arguments to RouterNanoHTTPD Handler
I'm using NanoHTTPD's RouterNanoHTTPD to add route mappings.
Calling addRoute(String uri, Class<?> handler, Object ... params) does not call the parameterized constructor to instantiate an ...
0
votes
0
answers
730
views
Nanohttpd serve multiple files
Using nanohttpd I can select a chosen file and start a server to serve that one file.
Is it possible to serve a list of lot of files?
That is, I have lot of files in sd card and I want to serve the ...
2
votes
1
answer
638
views
Can't establish connection to localhost when offline
I build a webserver on my android device by NanoHttpd or ServerSocket and connect to this server from itself. It run good when device is online. But I can't receive request when device isn't online. I ...