Two way communication through a HTTP proxy

I'm trying to come up with the most appropriate way to make a two way socket connection through a HTTP proxy - lets say it's a telnet style protocol. Unfortunately I also need to support NTLM...

PHP + curl, HTTP POST sample code?

Can anyone show me how to do a php curl with an HTTP POST? I want to send data like this: username=user1, password=passuser1, gender=1 To www.domain.com I expect the curl to return a response...

Sample code for POST + cookie?

I've been googling for some VB.Net code to authenticate to a web server with the POST method, receive a session ID in a cookie, and then send this cookie along with all GET queries... but all I...

REST, HTTP DELETE and parameters

Is there anything non-RESTful about providing parameters to a HTTP DELETE request? My scenario is that I'm modelling the "Are you sure you want to delete that?" scenario. In some cases, the...

How Can I Bypass the X-Frame-Options: SAMEORIGIN HTTP Header?

I am developing a web page that needs to display, in an iframe, a report served by another company's SharePoint server. They are fine with this. The page we're trying to render in the iframe is...

Right HTTP status code to wrong input

What is optimal HTTP response Code when not reporting 200 (everything OK) but error in input? Like, you submit some data to server, and it will response that your data is wrong using 500 looks...

Making PHP cURL request on Windows yields "400 Bad Request" from proxy

Morning all Basically, I am unable to make successful cURL requests to internal and external servers from my Windows 7 development PC because of an issue involving a proxy server. I'm running...

How to get response SSL certificate from requests in python?

Trying to get the SSL certificate from a response in requests. What is a good way to do this?

HTTP POST request using boost::asio

Where can I see an example of HTTP POST request using boost::asio? I've only saw some examples with HTTP GET requests.

Why is it common to put CSRF prevention tokens in cookies?

I'm trying to understand the whole issue with CSRF and appropriate ways to prevent it. (Resources I've read, understand, and agree with: OWASP CSRF Prevention CHeat Sheet,...

How can I make HTTrack only download files on the current domain?

No matter how hard I try, I can't seem to get httrack to leave links going to other domains intact. I've tried using the --stay-on-same-domain argument, and that doesn't seem to do it. I've also...

Is there a way to discover all endpoints of a ReST API?

I'm wondering if its possible to programmatically discover all the endpoints of a particular API. So for example if I GET this URL with a browser or curl: https://api.twitter.com/1.1/ I might get...

Problems with Angular 2 Http GET

I'm struggling to do a http get request with Angular 2. I've made a file with the JSON information that I want to "get" with my TeacherInfo class and use it to display information by the account...

HTTP request from Angular sent as OPTIONS instead of POST

I'm trying to send some HTTP requests from my angular.js application to my server, but I need to solve some CORS errors. The HTTP request is made using the following code: functions.test =...

How to programmatically replicate a request found in Chrome Developer Tools?

I'm looking at my balance on Venmo.com but they only show you 3 months at a time and I'd like to get my entire transaction history. Looking at the Chrome Developer Tools, under the network tab, I...

angular 4 - Response for preflight is invalid (redirect)

I have angular 4 project in local and i want use api to get information , i get this error localhost/:1 XMLHttpRequest cannot load http:????. Response for preflight is invalid (redirect) I have...

Extracting and Parsing the WWW-Authenticate header from HttpResponseMessage in .NET

I'm building an app using Azure AD to call the Microsoft Graph. In certain requests that require elevated access, the graph is issuing an HTTP 403 error with a special claims parameter inside the...

Jmeter I keep getting: 'java.net.ConnectException: Connection timed out: connect'?

Jmeter I keep getting: 'java.net.ConnectException: Connection timed out: connect' ? I have created a load test which tests a specific url at 200 users when running the load test for x1 iteration...

How to send data in post body in angular 4

Below is the code to make post request: export class AuthenticationService { private authUrl = 'http://localhost:5555/api/auth'; constructor(private http: HttpClient) {} ...

Using Vert.x Web Client to send GET requests properly with headers

I have an internal endpoint that I am trying to send GET requests to with Vert.x Web Client with Java. So far, I am unable to successfully get any data back. If I cURL the endpoint, it works just...

How do you add query parameters to a Dart http request?

How do you correctly add query parameters to a Dart http get request? I been unable to get my request to respond correctly when trying to append the '?param1=one¶m2=two' to my url, yet it works...

How to convert Response JSON to Object in Flutter?

I am trying to convert success JSON string to Object. May be I am not doing in proper manner But I have couple of question related to converting JSON to Object. Also I am getting this exeption in...

npm http-server downloads index.hmtl instead of serving

I am using http-server with ssl certificate in order to test facebook instant games. However, while server is running localhost makes my browser download index.html file instead of actually...

Tomcat 9: header line does not conform to RFC 7230

I have an app that was working on Tomcat 8.5.38. Now I decided upgrade to Tomcat 9.0.27 and there appears problem with GET request and RFC 7230, Hypertext Transfer Protocol (HTTP/1.1): Message...

Is there an HTTP Connection Timeout in client-side JS/Angular?

I'm using Angular's HttpClient to make HTTP requests and I'd like to specify a timeout for them. I know I can use HTTPInterceptors and add a timeout to RxJS operators, however, these apply to the...

ICE failed, your TURN server appears to be broken, see about:webrtc for more details

Im trying to find client Ip address using WebRTC, but in firefox im getting this error : ICE failed, your TURN server appears to be broken, see about:webrtc for more details var...

Microservices communication: HTTP vs RPC

RPC standard was created keeping in mind distributed computed but in Today's Microservices world we hardly use RPC for communication between services rather HTTP is mostly used. I want to...

How to set up CORS or OPTIONS for Rocket.rs

I've got a backend running rocket.rs which my flutter web app sends a request to, but it can't get past the OPTIONS response. I have tried adding CORS (rocket_cors) to the backend and having a...

Increase session timeout in web application using Angular 8 and Rest API

In my web application developed in angular 8 and Rest API, I have a POST API call that takes a long time than usual (> 1 hour or more) in uploading and processing certain large documents in...

Google Analytics 4 measurement protocol not working

I tried to send event to Google Analytics 4 using the postman. And GA4 just response 204 No Content and the event is not recorded in the data stream. I checked the measurement_id and api_secret...