back soft

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

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...

ادامه مطلب

Error - httpwebrequest-clientcertificates-x509certificate2 - c# ASP NET- SOAP -

Vote count: 0 I try to send a SOAP EnvelopXMl to a Web Service with a certificate file (certificate.p12). I have this following class to manage it : public class SoapClientManager { private string _url; private string _envXml; public String Url { get { retu this._url; } set { this._url = value; } } public String EnvXml { get { retu this._envXml; } set { this._envXml = value; } } public string CallWebService() { HttpWebRequest request = CreateWebRequest(_url); XmlDocument soapEnvelopeXml = createEnveloppeXml(_envXml); using (Stream stream = request.GetRequestStream()) { soapEnvelopeXml.Save(stream); } using (WebResponse response = request.GetResponse()) { using (StreamReader rd = new StreamRe...

ادامه مطلب

Is there anything wrong with requiring the client to specify the charset in the http content-type header field?

Vote count: 0 I'm implementing a service (as rest) that receives a POST method. The encoding in my sistem is UTF-8. I'm using jboss 5, in which the servlet that receives the requests follows the HTTP 1.1 specification of rfc2068 which states that: When no explicit charset parameter is provided by the sender, media subtypes of the "text" type are defined to have a default charset value of "ISO-8859-1" when received via HTTP. so when the client that invokes my service is using for example UTF-8 and doesn't specify a charset, and the body of the POST contains characters outside the US-ASCII, the Jboss servlet assumes "ISO-8859-1" and does a "wrong" decodification and in my system i receive "bro...

ادامه مطلب

XMLHttpRequest tracking issue (only for Firefox and Safari)

Vote count: 0 I'm using a system to track user activity. It works like a charm on Google Chrome but it doesn't work on Firefox and Safari (i guess caused by window.close) because doesn't write 'end_start' in my db and the page results still opened : jsHandler.js function start(pageName) { var xmlhttp3; if (window.XMLHttpRequest) { xmlhttp3 = new XMLHttpRequest(); } else { xmlhttp3 = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp3.onreadystatechange=function() { if (xmlhttp3.readyState==4 && xmlhttp3.status==200) { } } xmlhttp3.open("GET","includes/trackStart.php?pageName="+pageName,true); xmlhttp3.send(); } function end() { var xmlhttp3; if (window.XMLHttpRequest) { xmlhttp3 = new XMLHttp...

ادامه مطلب

Is the httpruntime element in web.config special?

Vote count: 0 In an existing web application, the web.config file contains an element referencing a custom class in the "requestValidationType" attribute. To use the same site bindings, I created a child application with a web.config overriding the element with an overriden "requestValidationType" attribute. However, in the child application I get an error pointing to the parent's web.config file saying that the class referenced in the "requestValidationType" attribute can not be found. Is the element special? Why it is not overriden? Thanks asked 1 min agoServer Doubts Let's block ads! بخوانید...

ادامه مطلب

How do I move my ServiceStack API from HTTP to HTTPS selectively

Vote count: 0 I followed the tutorial deploy and run Service Stack application on Ubuntu Linux and I got my API quickly up and ruing. So far it's all plain-text though. I'd like to secure the API with SSL, especially the service receiving useame and password, but maybe everything. I'm using the regular CredentialsAuthProvider together with JwtAuthProvider at the moment, if it's relevant. Using a 3rd party OAuth2/OpenID Coect would solve the login problem, but not securing the remaining contents. Also wonder how to selectively choose which services require SSL. The stack is: mono, nginx and HyperFastCGI (and C# ServiceStack) asked 27 secs agospecimen Let's block ads! بخوانید...

ادامه مطلب

Is anyone willing to share their https://egghead.io/ for a fee for me to use for one month only?

Vote count: -1 I want to lea Angular on https://egghead.io but their fee is way too pricey for me. I am willing to pay a reasonable amount to anyone who will let me use their account for a month only asked 16 secs agopyxis Let's block ads! بخوانید...

ادامه مطلب

fetching blob using xmlhttprequest and saving on client side

Vote count: 0 I am using xhr to make a call to server and it retus a blob. have set the respnoseType='blob' and it all works fine in chrome and firefox even in ie10+ but doesn't work in safari. if (navigator.appVersion.toString().indexOf('.NET') > 0) { window.navigator.msSaveBlob(blob, fileName); } else { var downloadUrl = URL.createObjectURL(blob); var a = document.createElement("a"); a.href = downloadUrl; a.download = fileName; document.body.appendChild(a); a.click();} what is the right way to do this, as this looks like a hack!. asked 33 secs agouser1861140 Let's block ads! بخوانید...

ادامه مطلب

Writing in a file in the server with HttpURLConnection

Vote count: 0 Community, I have this problem. I'm trying to write a content in a file in the server with HttpURLCoection, but it gives me error. This is the code: protected void onPostExecute(String result) { try { url = new URL("http://tmtsite.altervista.org/Agata/in.txt"); HttpURLCoection client = (HttpURLCoection) url.openCoection(); client.coect(); String datiPost = URLEncoder.encode("datanascita", "UTF-8") + "=" + URLEncoder.encode("CIAO MONDO!!!", "UTF-8"); client.setDoOutput(true); client.setChunkedStreamingMode(0); OutputStreamWriter wr = new OutputStreamWriter(client.getOutputStream()); wr.write(datiPost); wr.flush(); wr.close(); } catch (MalformedURLException e) { e.printStackTrace...

ادامه مطلب

jmeter getting Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required

Vote count: 0 while configuring HTTP request and put parameters in proxy server gui added the name and pass of the proxy to the HTTP authorization manager but still getting error Unable to tuel through proxy. Proxy retus "HTTP/1.1 407 Proxy Authentication Required asked 32 secs agochen Let's block ads! بخوانید...

ادامه مطلب

C++ server to serve local web files (html/css/javascript) using http

Vote count: 0 I'm writing a C++ desktop application with An embedded webview to show the UI written in html/css/js. A C++ backend to handle all logic and core operations. In order to show the web UI in the embedded webview without problems, I need to server those files from a local directory that will be part of the application. So I need to embed an http server as part of the application as well. So I'm looking to do something like this: web_view.ShowUrl("localhost:8080"); And this should automatically open index.html in /path/to/my/ui/directory/ that the embedded http server is set up to serve. Then it should be able to handle any includes of other scripts, html/css files, resource files l...

ادامه مطلب

Http Get Request in windows phone 8.1

Vote count: 0 Iam new to windows phone 8.1 app developement.i got stuck in getting response from API using httpclient get request..can anybody tell the best way to perform the get request from server in windows phone 8.1..thanks in advance asked 1 min agoMonuKJ33 Let's block ads! بخوانید...

ادامه مطلب

Redirect Subdirectory HTTP to Same Subdirectory HTTPS

Vote count: 0 I have googled for an hour about this, but none of the alteates are working for me. My goal: 301 Redirect from http://www.domain.com/guides/men/ to https://www.domain.com/guides/men/ I have tried both of these solutions suggested on other pages and neither worked. I keep seeing the http version of the page in both cases: http://stackoverflow.com/questions/4762859/htaccess-redirect-subfolder-to-https RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(guides/men/.*)$ https://www.example.com/$1 [R=301,L] http://stackoverflow.com/questions/9642877/redirect-only-one-folder-to-https-all-others-to-http RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} sec...

ادامه مطلب

creating an http server on windows 10 home edition

Vote count: 0 I am trying to run an http server using java and i cant seem to make the server reachable from outside of my network. I have already tried everything, port forwarding, disabling the fire wall, port opening in the router and nothing seems to be working. I have windows 10 home edition. Is there any possibility that windows 10 does not support this option, and i can not create a server like that on my laptop? asked 34 secs agoDany Lavrov Let's block ads! بخوانید...

ادامه مطلب

neo4j bolt driver is slower than http end point

Vote count: 0 We are using http end point for read queries so far and plaing to move to java bolt driver. But in initial tests it is observed that bolt driver is slower than http end point. following is the java driver code we are using. Driver instance created at Application context level: Driver neo4jReadDriver = GraphDatabase.driver("bolt://xyz.com", AuthTokens.basic("neo4j","neo4j" ), Config.build().withMaxSessions(20).toConfig()); Application code for executing query: Session session = neo4jReadDriver .session(); StatementResult result = session.run( "MATCH(p:GOE) retu count(p) as cnt"); while ( result.hasNext() ) { Record record = result.next(); System.out.println("Total number of GOEs...

ادامه مطلب

Cookie value does not work in HTTPS in REACT .JSX file

Vote count: 0 I hope someone can help. I am using REACT to build my front end application. I purchased a template from a website. Everything works fine except. I am trying to pass the session id from a node.js layer to React layer. However, the session id was able to be passed into the React layer perfectly but not in HTTPS protocol. Here is how I set the session cookie and coect to REACT. var unplug = reactCookie.plugToRequest(req, res); try { Router.run(routes(), location, function(e, i, t) { // passing the session user object into the router i.children = {}; i.children.user = req.session.user; console.log("react router params:"); console.log(i); reactCookie.save("sessionId", req.sessionID...

ادامه مطلب

How to Inject Laravel 5.2 “IlluminateHttpRequest” in your custom classes?

Vote count: 0 I am new to laravel and I got a question here. I am trying to inject 'IlluminateHttpRequest' to my custom Class. Error: __construct() must be an instance of IlluminateHttpRequest, none given, What is wrong with my code below? Thanks! namespace AppLibrary; use Crypt; use IlluminateHttpRequest; class MenuAccess { public function __construct(Request $request){ $this->request = $request; } public function setLoginSession($user){ $user = Crypt::encrypt($user); $this->request->session()->put('PAZPOSID', $user); retu $request->session()->pull('PAZPOSID'); } } asked 2 mins agoJohan Syah Let's block ads! بخوانید...

ادامه مطلب

HTTP: Type assertion from JSON object to Typescript class/interface

Vote count: 0 I've reading up on interfaces and type assertion. Been looking at pages like: I'm getting the hang of it, and it's pretty straightforward in understanding the basics. Though: Nowhere do I find how to type a JSON object to a object I use in my app, when HTTP is involved. For example, I have an Array of Teacher-objects. Each Teacher has an id, name and an Array of Students. I have another class Students that contain their attributes..... etc. Somewhere in those links I read that, unless you need to perform actions to an object, it's enough to have just an Interface. But unless you want to do actions to the Object you need a separate class? My actual Teacher class begins with... :...

ادامه مطلب

Need a vertical mega menu like http://www.lynda.com/

Vote count: 0 I have a WPLMS site at http://edudelight.in/ I need to have a vertical mega menu under the "All Courses" menu similar to http://www.lynda.com/ > "Library" menu. At first I tried with Max Megamenu plugin, but there a mega menu can only be created at the top level. As I said, I need the mega menu at the 2nd level. Now I am using this plugin https://wordpress.org/plugins/tabs-responsive/, but it works on mouse click and not on mouse hover. I don't want to purchase UberMenu for now. Please suggest the solution. Should I continue using this Tab plugin, where creating the whole mega menu could be quite a tedious job? In that case how to code for changing the OnClick to mouse hover. O...

ادامه مطلب