back soft

مطالب مرتبط با «http» در back soft | نویسنده: استخدام کار

Elasticsearch CORS HTTPD and AngularJs Communication Issue

Vote count: 0 I am using Elasticsearch to store and query logs. I am creating a front end UI that will display the queried information from Elasticsearch to a webpage using AngularJs. The webpage is ruing on CentOS 6 Apache HTTPD on port 80. Elasticsearch is ruing on port 9200. When I query Elasticsearch using AngularJs I am getting the following error: XMLHttpRequest caot load http://my_ip/ali_viewer/log/_search. Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response. This seems to be a common issue found on stackoverflow and the rest of the web, but after trying so many solutions with no success I will post my specific configuration. httpd.co...

ادامه مطلب

Retrieve AngularJS $http.post server data using PHP

Vote count: 0 I am calling a $http.post function but can not grab the data on the other side, the calls goes through successfully but can not retrieve the data in my PHP script AngularJS: var data = { firstname: $scope.first_name, lastname: $scope.last_name, email : 'test@fff.com', user : userID }; var config = { headers : { 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8;' } } $http.post('http://xxx-env.us-east-1.elasticbeanstalk.com/apipost/updateusersetting/user/'+userID, data, config).success(function (data, status, headers, config) { alert('yay'); // this works and gets called }) .error(function (data, status, header, config) { }); Server side PHP: $data = json_decode(f...

ادامه مطلب

How we can change data loaded in ng-grid in effective way by getting data from HTTP services

Vote count: 0 We have a ng-Grid in application. Once we change User from drop down http call made and get data for user and it should bind to grid. I want only digest to update data to grid should be fired not all digest in grid. Basically i want good performance doing this operation. $http({ method: 'POST', url: '/Home/GetPreBillPendingBilling/', data: { UserName: $scope.User } }).success(function (thisdata) { $scope.PendingBilling = angular.fromJson(thisdata); $("#divLoading").hide(); $scope.ngGridViewPendingBilling.isLoaded = true; }); $scope.PendingBilling is data source of ng grid asked 1 min agoNikhil Tiwari Let's block ads! بخوانید...

ادامه مطلب

HTTP header recv() in C

Vote count: 0 i'v got problem with my code. I want to know recieve header, but sometime it works well and sometime dont. There is my code to send send(s, message, strlen(message), 0) And this for recieve data int memory = 1; int d = 0; header = malloc(memory * sizeof(char)); if (header == NULL) { printf("Error, memoryn"); retu 1; } while (recv(s, header + d, 1,0)>0) { if(strstr(header, "") != NULL) break; d++; if (d >= memory) { memory *= 2; header = realloc(header, memory); if (header == NULL) { printf("Error, memoryn"); retu 1; } } } I think it some problem with malloc, but i cant find where. This is succes reciev header, from https://www.w3.org/TR/ldp/images/ldpc-hierarchy.png Header: HTT...

ادامه مطلب

Using Okhttp to get a json file but need to add a username and password

Vote count: 0 I am trying to log into server to receive a json file back. But the server needs a useame and pass word. I don't know how to add that into my build. I looked at a lot of sources but I caot figure it out what to add to my builder. Thank you very much for any help Here is my OkhttpHandeler code public class OkHttpHandler extends AsyncTask { OkHttpClient client = new OkHttpClient(); Response response; Request request; private final String apUrl = "http://xxxxxxxx.xxxxxx.com/api/1.0/promotions"; String output; String picture; //JSon Data String jsonData; JSONObject jsonObject; JSONArray jsonArray; @Override protected String doInBackground(String... params) { RequestBody formbody = ...

ادامه مطلب

How to use HTTP GET request with **dynamic site** using c++?

Vote count: 0 I need to retrieve the html page from a website. I decided to use socket and HTTP GET request. I use c++ and I query a recipes site. It is a dynamic website. In the previous question I asked why I receive different response from the site but now, I need to clean the html page and get the content of the site but when I isolate the body of the page, the content of the site that will be generated dynamically show me an error message like: The page was not found Someone know the problem? I don't know how to resolve this problem. I tried to change site but the result is the same. asked 1 min agoSilvia B Let's block ads! بخوانید...

ادامه مطلب

Get base uri of io.netty.handler.codec.http.HttpRequest

Vote count: 0 In netty HttpRequest there is only a method request.getUri() which retus the path after host:port. Is there anyway I can get the entire url, or the host:port values separately? asked 51 secs agouser2894296 Let's block ads! بخوانید...

ادامه مطلب

Error in twInterfaceObj$doAPICall: Bad Request (HTTP 400) while running in Shiny

Vote count: 0 I am able to retrieve the amount of tweets I asked for while normally ruing in my R console. But, while using shiny, even if I use: setup_twitter_oauth() function with all the necessary parameters required, it shows Error: Bad Request (HTTP 400) while ruing the app. I have tried all possible solutions found over inteet. Still I couldn't get rid of this problem. Any suggestions? asked 1 min agoSolomon AathiRaj Let's block ads! بخوانید...

ادامه مطلب

I'm getting http://localhost/php/newfolder/person.php?id%20=%206 instead of /person.php?id=6

Vote count: 0 [This image is the php code i have written.][1] [1]: http://i.stack.imguenter code herer.com/yp0MG.jpg asked 1 min agoSas Let's block ads! بخوانید...

ادامه مطلب

RTSP Live streaming to HTTP

Vote count: 0 I have an Unifi AirCam gen2, that generates a RTSP stream, i need to take this stream and embed it on a website. Is this possible? I prefer a self-hosted solution for security, actually I'm using ubuntu 14.04.04 as webserver. Thank You asked 47 secs agouser2453206 Let's block ads! بخوانید...

ادامه مطلب

HttpContentExtensions.ReadAsAsync Error

Vote count: 0 When making a method call to a generic method within the same class, I am getting the following exception: System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1 System.Net.Http.HttpContentExtensions.ReadAsAsync(System.Net.Http.HttpContent)' The method call is as follows: CarMdRootMessage report = this.CarMdGet(string.Format("report/diagnostic?uploadID={0}", string.Join(",", uploadIds))); It looked like an issue with the "Microsoft.AspNet.WebApi.Client" NuGet package being out-of-sync between projects, but I have them all on 5.2.3 now and still have the issue. I also thought this may be a .NET 4.5 issue so I've upgraded all projects to .NET 4.5.2, but I...

ادامه مطلب

Turn off auto redirect in HttpWebRequest

Vote count: 0 I have a POST request, that retu code 302. string FormParams = "Some_string"; byte[] SomeBytes = Encoding.UTF8.GetBytes(FormParams); HttpWebRequest AuthPost = (HttpWebRequest)WebRequest.Create("https://example.com/"); AuthPost.Method = "POST"; AuthPost.AllowAutoRedirect = false; AuthPost.Accept = "text/html, application/xhtml+xml, */*"; AuthPost.Headers["Referer"] = "https://example.com/"; AuthPost.Headers["User-Agent"] = "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; ASU2JS; rv:11.0) like Gecko"; AuthPost.ContentType = "application/x-www-form-urlencoded"; AuthPost.Headers["Accept-Encoding"] = "gzip, deflate"; AuthPost.Headers["DNT"] = "1"; AuthPost.Headers["Coection"...

ادامه مطلب

Gmail Gadget Error 406 being thrown on osapi.http.post

Vote count: 0 We have multiple marketplace Apps that use Gmail Contextual Gadgets. These have been ruing for years successfully. We are now noticing the following error being thrown when calling out to an exteal web server using open social osapi.http.post "{"id":"http.post","error":{"message":"Response not valid JSON","code":406}}" We have checked and there is nothing wrong with our server. We can make the call directly to our server successfully without fail. We can replicate the issue calling to multiple servers ruing different apps/gadgets. The only commonality appears to be the use of osapi.http.post. Here is the post osapi.http.post({ 'body': postdata, 'href': serverUrl + 'iLinkStreame...

ادامه مطلب

Simple HTTPS GET from the AngelList API with NodeJS and Request

Vote count: 0 I have managed to grant access from the user, thus to get the access_token as needed to retrieve the data from the Angellist API. The next step is to fetch the user data. As we can read from the Angellist API, you do this by authenticated HTTPS GET requests: Use the Token Any requests that require authentication must be made using HTTPS, with the access token provided in the HTTP Authorization header, request body or query string. AngelList only supports Bearer tokens, as defined in http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-08. An example using the query string: GET https://api.angel.co/1/me? access_token=... To make the request in NodeJS, I use the npm package requ...

ادامه مطلب

Correct @EnableRedisHttpSession configuration with Redis Sentinel

Vote count: 0 I have a Spring Cloud based application with multiple backend Spring-Boot servers. The servers are all sharing their session with a Redis server via @EnableRedisHttpSession. I'm trying to configure the application with master-slave configuration and Redis Sentinel. My setup is 1 master, two slaves, and 3 sentinels. I keep getting issues with the environment. At first, I was getting an error saying that my slave it READONLY. So I had to set all slaves to READWRITE. Then, I still got this error. Tus out that when a slave was promoted to master, the old master was tued into slave, with the default READONLY setting. So I had to set the master to READWRITE as well. These are my comm...

ادامه مطلب

Angular library no making HTTP calls

Vote count: 0 i have build angular library using this Generator all the functions of the library works fine when i call them from the app but, the functions that make HTTP calls are not working. Is there any reason preventing from making HTTPS calls from an Angular library ! note: am using $http service inside the library. asked 1 min agouser1920302 This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

NSURLSession/NSURLConnection HTTP load failed

Vote count: 0 Hello i have made the changes in info.plist for loading the http coection still i am getting this error. I have use the google map sdk so i have include the following key in plist. NSAppTransportSecurity NSAllowsArbitraryLoads asked 3 mins agojogshardik This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

PHP - SoapFault exception: [HTTP] Error Fetching http headers

Vote count: 0 i want to retrieve data from SOAP WSDL (PHP). But it always retu this error SoapFault exception: [HTTP] Error Fetching http headers in /home/myTest/public_html/test/test.php:30 Stack trace: #0 [inteal function]: SoapClient->__doRequest('__soapCall('testCall', Array) #2 {main} I already searched for the solution from google and SO, but it just didn't work for me. I followed this solution Set default_socket_timeout but nothing happened. Here's my php code, Please let me know if you need more further information to solve this Thanks in advance. asked 1 min agoWebster This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else...

ادامه مطلب

angularjs2: initialize services with http response

Vote count: 0 We've been reading some resources for hours, but can't seem to find the right thing. It might be easy, but we can't seem to find a good way: how should we initialize multiple services, if possible at app boot time, with configuration data that we fetch from a server? asked 1 min agoymajoros This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

HTTPS on a EC2 instance

Vote count: 0 I have an EC2 instance on Amazon (AWS). The instance is behind a ELB (Elastic Load Balancer). I want to allow HTTPS coections to reach the EC2 instance. Is it necessary to have the load balancer configured for HTTPS, ie, to check the certificates etc, or can this just be done traditionally within the EC2 instance and virtual host SSL configuration ? The reason I'm asking is because I have allowed traffic via ELB -> EC2 for port 80 and 443, but only port 80 reaches the instance. asked 1 min agoJanpan This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.p...

ادامه مطلب