Questions tagged as 'http'

0
answers

External redirect in express

Galera, How do I change this line of code to my: app.use(express.static(__dirname + '/public')); For 1 external redirection, eg redirect to http://www.google.com     
asked by 19.08.2016 / 19:01
1
answer

Error 500 (Internal Server Error), how much do I try to create a session

I'm trying to create a session for a login using Java, vRaptor, Hibernate, AngularJS. But when the session is going to be created I get this exception ( 500 (Internal Server Error )). This is my session class using vRaptor: @SessionSc...
asked by 06.07.2016 / 14:31
0
answers

Error in http connection org.json.JSONException: End of input at character 0 of

When I try to get a JSONArray from the internet, it has an error. Error Error in http connection org.json.JSONException: End of input at character 0 of This error happens when he tries to read the response from the interne...
asked by 06.06.2016 / 17:49
1
answer

Status 200 data undefined angularjs

I am mounting an application in angular, where I give http.get in a url, the status comes 200, but the date comes empty. In the api where I mounted, I return the array in json, and in the webservice in the angular, I apneas give http.get and the...
asked by 24.03.2016 / 23:28
1
answer

Error making REST call with AngularJS

I'm using $ http from angular to make REST calls on my server, however I'm having a problem: In 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. I have tried several...
asked by 23.02.2016 / 13:17
0
answers

Glassfish: Trying to access the server through HTTPS

I have Glassfish 4.0 running on my local machine. I then tried to add an http listener, as follows: asadmin> create-http-listener --listeneraddress 127.0.0.1 --listenerport 80 --securityenabled=true --default-virtual-server server --listene...
asked by 31.10.2015 / 19:17
1
answer

HTTP Status 404 - /alfresco/testCMISfromJS.html [closed]

I'm trying to run an HTML file in Alfresco, which I put inside the folder (folderresult) / tomcat / webapps. Then I tried to run link but I get the error: HTTP Status 404 - /alfresco/testCMISfromJS.html type Status report message /alfres...
asked by 27.09.2015 / 13:28
0
answers

Get status code from the current request

I have a request made by JqueryFileDownload that when error occurs the server returns me different types of status. I need to act on the client according to these errors. Unlike the jquery ajax I can not get the fileDownload to receive the...
asked by 04.09.2015 / 17:51
2
answers

$ http works in browser and not in android device [closed]

I have an application developed using Ionic Framework , it is a hybrid application and in the tests done in the browser it worked perfectly, when I generated the .apk file and tested both the emulator and the device is not executing the request...
asked by 25.05.2015 / 00:13
0
answers

DefaultHttpClient is decrepated in Android app

I'm performing an integration with a JSON in my application, but when I use DefaultHttpClient it displays the message:    'org.apache.http.impl.client.DefaultHttpClient' is deprecated. Follow the code below: public class JsonClas...
asked by 04.05.2015 / 16:31