Questions tagged as 'http'

1
answer

How to control the responses of http requests with angularjs

I would like to know how to handle exceptions in angularjs. What artifacts can I use or how to implement error handling. I have the following code: This is an example of my JSON. Now what I would like to validate is if the list "listProduc...
asked by 20.06.2016 / 22:08
1
answer

Change PHP STATUS to pick it up from Unity

I have a file in php where I receive data from an application in Unity, all good until after validating the information I need to recover a STATUS . I'm using this way of setting the STATUS in php ; if(count(mysql_...
asked by 02.11.2018 / 17:56
1
answer

Help with a php code to not show the page if it is accessed from the url

I have the following code that its function would be to detect the entry from the page step1.php to paso2.php Let me explain, I want people who enter step2.php without going through the first step not to be allowed, with this code I have achi...
asked by 18.08.2018 / 15:52
2
answers

Problem with ngIf and subscribe in Angular

I'm having problems updating the value of a variable within a subscribe to decide whether or not to show a div in the template. The idea is that if the credentials of a user are not correct and the HTTP response of the server is not 200 OK a div...
asked by 24.07.2018 / 18:30
2
answers

exception http.client in Python

I'm trying to handle exceptions I have the following code: conn = http.client.HTTPSConnection (site, timeout = 5) When the waiting time exceeds What exception should I use? try: conn = http.client.HTTPSConnection(site, timeout...
asked by 08.06.2018 / 23:36
1
answer

Error in a queuing service, NullInjectorError: No provider for HttpServiceService

According to what I have been reading because of the error it gives me, it is because I lack some import in the module of the app, but I do not see any missing, I have the service and the component from where I call the service and the module of...
asked by 25.04.2018 / 12:33
1
answer

JAVA web application, make it totally portable

Hello, how are you? I have a JAVA application that acts as an HTTP server, and what I would like to do is, add all the FRONT-END files of the application in the same jar, and when I transport the jar file, they can be written in the same locatio...
asked by 21.11.2017 / 17:44
1
answer

FileNotFoundException when using http: // user: [email protected]

I am trying to access a file that I have on a server, which is protected with .htpasswd . And when trying to access from my app in android I get the following exception:    java.io.FileNotFoundException:    link The code I u...
asked by 20.06.2017 / 12:29
3
answers

Build json with several arrays

I have an api that receives this json: { "instructions":[ { "A":9, "B":1, "move":"moveover" }, { "A":8, "B":1, "move":"moveover" }...
asked by 16.02.2017 / 23:25
2
answers

Error 405 when xmlhttpRequest performs a post on a server folder

I would like to use a code to upload several files to the server. My server is an IIS 8.5 and I have probed these tools: link and link The problem is that both of them return a 405 error when XMLHTTPRequest is executed on target...
asked by 17.10.2016 / 10:25