http-proxy

Tomcat 6.0.35 Windows 32b Service useSystemProxies

狂风中的少年 提交于 2020-01-17 05:46:06
问题 I've been trying the whole day to make Tomcat6 use system proxy settings. Tried various ways, about 200 different Versions of tomcat6 //US/Tomcat6 ++JvmOptions "-Djava.net.useSystemProxies=true" I tried to set the property in service.bat in the "install" section like this (also many similar versions): ... :foundJvm echo Using JVM: "%PR_JVM%" "%EXECUTABLE%" //IS//%SERVICE_NAME% --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams

Not able to intercept traffic from nike.com login request

*爱你&永不变心* 提交于 2020-01-14 04:09:31
问题 I'm using BurpSuite to intercept the HTTP/HTTPS requests sent when logging in on https://www.nike.com/. I'm trying to achieve this with the following step: Opening BurpSuite and Firefox Turning on the proxy intercept Turning on FoxyProxy on Firefox Opening the website and trying to logging These steps usually work for me, but in this case, I'm getting a "we are unable to connect to our servers" error without anything appearing on the intercept tab when trying to logging (I have tried turning

How to transfer a file using a proxy with JSch library

狂风中的少年 提交于 2020-01-13 02:53:07
问题 I want to transfer files to a remote location and I am bound to use a proxy server for that. I was able to connect to the FTP location via following command : sftp -o "ProxyCommand /usr/bin/nc -X connect -x <proxy_host>:<proxy_port> %h %p" username@ftp_server: But I want to automate this process of file transfer and I am using JSch for SFTP and snippet of code is below: String sourceFile = sourceDir + fileName; JSch jsch = new JSch(); int port = Integer.parseInt(getFtpPort()); Session session

Using Node JS to proxy http and modify response

一笑奈何 提交于 2020-01-13 01:43:08
问题 I'm trying to write a front end to an API service with Node JS (with which I am a relative beginner). I'd like to be able to have a user point their browser at my node server and make a request. The node script would modify the input to the request, call the api service, then modify the output and pass back to the user. I like the solution here (with Express JS and node-http-proxy) as it passes the cookies and headers directly from the user through my site to the api server. proxy request in

HTTP Server Multiplexer/Tunneler(Proxy)

和自甴很熟 提交于 2020-01-07 04:35:02
问题 I'm looking for a HTTP Server Multiplexer because I've only one public IP and I need use two different Web Servers (Tomcat and IIS) on the same port (the 80). So I thought that is possible use a multiplexer to tunnel all traffic for iis.mydomain.com to the internal port of IIS (for example the 81) and tunnel all the traffic for apache.mydomain.com to the internal port of Tomcat (for example 82). I think the multpliplexer must choose the correct tunnel reading the HTTP-Host header. And this

Python requests through VPN giving 502 Bad Gateway

馋奶兔 提交于 2020-01-03 02:50:12
问题 I'm trying to grab some data from a server inside my company's network with the requests library. I'm using a VPN to get into my company's network and there is also a corporate proxy set up. The address I am trying to access is only visible from within that company network. import requests url = "http://some.private.server.net" r = requests.get(url) I have both HTTP_PROXY and HTTPS_PROXY set in my environment. I am running Windows 7. I get error 502 from this code. It worked when I was

Programmatically Retrieve OSX Network/Proxies configuration values

时光毁灭记忆、已成空白 提交于 2020-01-01 14:09:10
问题 Considering my application has the user ID and Password for the admin user currently logged in, is it possible to retrieve the configuration values from the OSX Network settings? Particularly interested in the "Advanced/Proxies" tab content. 回答1: Did it with the settings API. Here's an example to fetch the PAC URL string from the OSX Network Settings. static char url[257] = {0}; NSDictionary * proxies = (NSDictionary *)SCDynamicStoreCopyProxies(NULL); NSString * pacURL = [proxies objectForKey

Programmatically Retrieve OSX Network/Proxies configuration values

╄→гoц情女王★ 提交于 2020-01-01 14:07:07
问题 Considering my application has the user ID and Password for the admin user currently logged in, is it possible to retrieve the configuration values from the OSX Network settings? Particularly interested in the "Advanced/Proxies" tab content. 回答1: Did it with the settings API. Here's an example to fetch the PAC URL string from the OSX Network Settings. static char url[257] = {0}; NSDictionary * proxies = (NSDictionary *)SCDynamicStoreCopyProxies(NULL); NSString * pacURL = [proxies objectForKey

How to capture HTTP request / response headers with mitmproxy?

浪尽此生 提交于 2020-01-01 03:30:13
问题 I have been able to capture the HTTP(s) traffic from a smartphone and also stored this traffic using mitmdump using the command mitmdump -w outfile This seems to dump the HTTP body along with the headers as well. I am interested in capturing only the headers, prefarably as a single csv row (or json string). How can I do that? 回答1: Yet another derived snippet based on previous responses and updated to python3: def response(flow): print("") print("="*50) #print("FOR: " + flow.request.url) print

http-proxy-middleware, how to copy all/cookie headers

泪湿孤枕 提交于 2020-01-01 01:18:09
问题 I am using lite server by John Papa with HTTP proxy middleware by chimurai as a dev server. the problem is with my session cookie, I cannot persist the session cookie that comes from the real server. I saw this solution: https://github.com/chimurai/http-proxy-middleware/issues/78 but I see no resemblance to my bs-config.js: var proxy = require('http-proxy-middleware'); module.exports = { port: 3003, server: { middleware: { 1: proxy('demo/webservice/jaxrs', { target: 'https://localhost:8443',