back soft

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

Can't install aiohttp==2.0.6 on Alpine Linux v3.5

Vote count:
 0I'm using a fresh install of Alpine Linux v3.5 with edge/main reposThese are the commands I'm ruing:$ echo "http://mirror.yandex.ru/mirrors/alpine/edge/main" > /etc/apk/repositories $ apk update $ apk add python3 $ pip3 install aiohttp==2.0.6 And that's the error that...

ادامه مطلب

Angular2 appear warning XMLHttpRequest at chrome

Vote count:
 0I used Http Restful API at Angular2, but appear the following waing message.Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.Please tell me how to...

ادامه مطلب

.Net - WebClient or HttpWebRequest to get content

Vote count: 0 I developed an application to download multiple images from a website with a patte, using a WebClient. When I started with this, my idea was a fast and easy app, so I made a form with: WebBrowser (WB) Multiline textbox to put multiple urls to crawl Listbox to storage the link of each photo Textbox to select a targetpath Button to start the process It was easy, I just needed to find the labels of each photos using For + HtmlElement + WB.Document.All. Once I got all links, I used a WebClient to download them very fast (Client.DownloadFile(path, filename)). It works flawlessly. Now the app is bigger, it has more websites to crawl and I would like to use BackgroundWorker to manage ...

ادامه مطلب

HttpSecurity Not Working in SOAP Web Service (Springboot)

Vote count: 0 I have the following java configuration for my SOAP WebService Springboot application: WebSecurityConfiguration; @Configuration @EnableWebSecurity public class AgreementWebSecurityConfiguration extends WebSecurityConfigurerAdapter { @Value("${spring.application.name}") private String applicationName; private static final String ROLE = "agreement-service"; /** * Defines which URL paths should be secured and which should not. * Specifically, the "/agreementservice-/**" path is configured to require authentication. * * @param httpSecurity allows configuring web based security for specific http requests * @throws Exception if error is encountered when accessing the {code httpSecuri...

ادامه مطلب

Adding custom HTTP header to SignalR Hub

Vote count: 0 Is it possible to add a custom HTTP header to SignalR Hub from JS client when the coection starts? My SignalR hub is shared both by my mobile and web client. I can pass a header from the mobile client but I'm not sure if this is possible to do this from the web client. This is what I'm trying to do var name = Context.Request.Headers["useame"]; how do I differentiate between the web and mobile client? asked 1 min agoAhmed Mujtaba Let's block ads! بخوانید...

ادامه مطلب

NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813) in youtube player

Vote count: 0 I'm using YouTube helper library to embed video in iOS app(https://github.com/youtube/youtube-ios-player-helper).I'm getting following message in console while ruing app and showing black color in youtube player view.Message is "NSURLSession/NSURLCoection HTTP load failed (kCFStreamErrorDomainSSL, -9813)".I have also enabled arbitary loads of transport security in info.plist file.Thanks in advance. asked 45 secs agoNikhil Kshirsagar Let's block ads! بخوانید...

ادامه مطلب

PHP CURL Proxy "curl -x" VS "sudo http_proxy=... curl"

Vote count: 0 sudo http_proxy=200.108.138.118:3128 curl -L -> curl -x 200.108.138.118:3128 -L -> Received HTTP code 403 from proxy after CONNECT Why last one doesn't works? asked 57 secs agoNoah Burger Let's block ads! بخوانید...

ادامه مطلب

WinHttpRequest "send" is working on office 2007 products but not 2013

Vote count: 0 I have written some code that retrieves text from our server and writes that text into a word document. We are in the process of upgrading our office suite from 2007 to 2013, but I'm having issues when testing my previously working code in Word 2013. I've narrowed it down to the http.send line, this doesn't seem to send anything. When I run the code on 2007 suite I get a small wait and then it jumps to the http_OnResponseFinished() Sub, but in 2013 suite it doesn't enter that sub. The URL is the correct one and it looks the same/retus the same data between 2007 and 2013 suites. Public Sub Download(Url As String, Optional Async As Boolean = True) Debug.Print "About to download t...

ادامه مطلب

angularjs http service wait for data

Vote count: 0 I have HTTP service that retus promise to inspection2update.DamageTypeId property and continue to execute further. HTTP service: function post(objectTypeId, damageDescription) { var defer = $q.defer(); $http.post(serviceAddress + "save/" + objectTypeId + "/" + damageDescription).then(function (response) { defer.resolve(response.data); }); retu defer.promise; } Here how I call service in controller: inspection2update.DamageTypeId = damageTypesService.save(inspection2update.ObjectTypeId, self.dType); But I need to wait until I get data from service and only after it, to execute further. For this purpose I use $q service inside $http resolver, but still...

ادامه مطلب

NotFoundHttpException - Laravel

Vote count: 0 i want to make edit-update function.. this is my code : Admin Controller public function edit_ist($id_prog) { $program_studi = ProgramStudi::find($id_prog); retu view('edit_ist_program_studi',compact('program_studi')); } public function update_ist($id_prog) { $istUpdate = Request::all(); $program_studi = ProgramStudi::find($id_prog); $program_studi->update($istUpdate); retu redirect('administrator'); } Form open in view edit_ist_program_studi {{ Form::model($program_studi,['method'=>'PATCH','route'=>['update_prodi',$program_studi->id_prog]])}} Routes: Route::patch('admin_page/edit_prodi/{id_prog}', ['as' => 'update_prodi', 'uses' => 'AdminController@update_ist']); But i found e...

ادامه مطلب

Rancher: Nginx configuration to access rancher server at https:/rancher

Vote count: 0 I am trying to set up an Nginx reverse proxy server which will perform https termination for multiple docker containers one of them being the Rancher server. My wish is to set up the reverse proxy server as following: https:///rancher -> rancher-server https:///jenkins -> jenkins-master ... I succeeded in setting up the rancher server at https:// by following the documentation at Installing Rancher Server With SSL. As mentioned in the document, my nginx configuration is as following: upstream rancher { server rancher-server:8080; } server { listen 443 ssl; server_name ; ssl_certificate ; ssl_certificate_key ; location / { proxy_set_header Host $host; proxy_set_header X-Forwarde...

ادامه مطلب

Error:(68, 45) error: cannot find symbol class BasicHttpParams .. etc

Vote count: 0 i was write code for login activity with php path server and now i just copy the code and use it in new application this is my code:- import android.content.Intent; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import org.apache.http.params.HttpCoectionParams; import org.apache.http.params.HttpParams; import org.json.JSONException; import org.json.JSONObject; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; ...

ادامه مطلب

angular $http request to API endpoint error?

Vote count: 0 I am trying to utilize angular's $http.jsonp() method to access data about a Vimeo video at an arbitrary url, say https://vimeo.com/176329517. I want a reliable way to pull the video id for a video, so I figured accessing Vimeo's API endpoint would be the most flexible way to go. Any idea on why the below code isn't working? // 'date' is new Date().getTime() const api = `http://vimeo.com/api/oembed/.json?url=https://vimeo.com/176329517 callback=JSON_CALLBACK&_=${date}`; $http.jsonp(req).then((resp) => { // trying to analyze JSON resp here }); asked 31 secs agoHarrison Let's block ads! بخوانید...

ادامه مطلب

pxe booting http retrieval failures

Vote count: 0 I am attempting to pxe chain boot with http download. The problem I am having is the file retrieval always just stops on one of the random files below, at some random % complete. Usually it is the boot.wim, but I assume this is only because it is the largest. It has stopped on a simple font file as well though. What could be causing this sporadic download behavior? If I attempt a windows download off the samba share where those files are, the download is 1-2 secs. If I wget it from a nix host its about the same. Only when pxe is attempting to retrieve them does it seem to have an issue. I am fairly new to all this so hopefully I am giving good info. Samba server is ruing via ap...

ادامه مطلب

Timeout for request through https proxy

Vote count: 0 I'm trying make request through proxy. It's my code. var proxyList = [ 'http://useame:pass@hostname:65233', 'https://useame:pass@hostname:65233' ]; var ADDRESS = 'https://google.com'; var TIMEOUT = 5*1000; var rp = require('request-promise'); var url = require('url'); function check(proxyUrl){ rp({ method: 'GET', uri: ADDRESS, proxy: proxyUrl, timeout: TIMEOUT, tuel: true }) .then(function(){ console.log('good - ' + proxyUrl); }) .catch(function(e){ console.error(e); }); } proxyList.forEach(function(proxyData){ check(proxyData) }); http proxy works well, but on https i receive timeout curl commands works well on http and https curl --proxy http://useame:pass@hostname:65233 http...

ادامه مطلب

Java framework for batch jobs with gui and http server

Vote count: -2 I want to develop a system for batch jobs and remote control via http. This system should get jobs via REST or read from redis and result writes to database. I could take java ee wilh wildfly, but I think it's would be overkill for this moreover I already use rails application (sidekiq, rescue isn't convenient for me) I want to find very lightweight framework/library somethink like jetty + ? I've already found spark, vert.x but I'm not sure that they could work with background tasks. asked 1 min agomystdeim Let's block ads! بخوانید...

ادامه مطلب

Static resource reload with akka-http

Vote count: 0 In short: is it possible to reload static resources using akka-http? A bit more: I have Scala project. I'm using App object to launch my Main class. I'm using getFromResourceDirectory to locate my resource folder. What I would like to have is to hot-swap my static resources during development. For example, I have index.html, which I change and I want to see changes after I refresh my browser. What is the best practise of doing such thing? I know that Play! allows that, but don't want to base my project on Play! only because of that. asked 27 secs agobritva Let's block ads! بخوانید...

ادامه مطلب

Using HttpContextAccessor in a .NET 4.6 project

Vote count: 0 I've created a .NET Core project (a class library) that also targets .NET 4.6, which needs to be able to access the current HTTP context. I see that we can no longer use the static HttpContext.Current, and have to inject an instance of IHttpContextAccessor. Is this something I can still use inside something like a Web API project targeting .NET 4.6? So far, I can't get HttpContextAccessor.HttpContext to retu anything but null. asked 14 secs agoTom Let's block ads! بخوانید...

ادامه مطلب

Using Spring RestTemplate for HTTPS call causes "javax.net.ssl.SSLHandshakeException" unable to find valid certification path to requested target

Vote count: 0 I am able to hit the service using postman(rest client) but the same fails while using Spring Rest Template. asked 17 secs agoVikas Rajoria 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.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....

ادامه مطلب

Sending a file with XMLHttpRequest() to Tika server

Vote count: 0 I'm trying to send a PDF for content extraction to a Tika Server but always get the error: "Caot convert text from stream using the source encoding" This is how Tika is expecting the files: "All services that take files use HTTP "PUT" requests. When "PUT" is used, the original file must be sent in request body without any additional encoding (do not use multipart/form-data or other containers)." Source https://wiki.apache.org/tika/TikaJAXRS#Services What is the correct way of sendig the file with XMLHttpRequest()? Code: var response, error, file, blob, xhr; file = new File("/PROJECT/web/dateien/ai/pdf.pdf"); blob = file.toBuffer().toBlob("application/pdf"); url = "http://localh...

ادامه مطلب