How to fill in proxy information in cntlm config file?

Update your user, domain, and proxy information in cntlm.ini, then test your proxy with this command (run in your Cntlm installation folder): cntlm -c cntlm.ini -I -M http://google.ro It will ask for your password, and hopefully print your required authentication information, which must be saved in your cntlm.ini Sample cntlm.ini: Username user Domain domain # … Read more

What is the function of the “Vary: Accept” HTTP header?

The cache-control header is the primary mechanism for an HTTP server to tell a caching proxy the “freshness” of a response. (i.e., how/if long to store the response in the cache) In some situations, cache-control directives are insufficient. A discussion from the HTTP working group is archived here, describing a page that changes only with … Read more

GitHub Windows client behind proxy

Add these entries to your ‘.gitconfig’ file in your user directory (go to %USERPROFILE%): [http] proxy = http://<proxy address>:<proxy port> [https] proxy = https://<proxy address>:<proxy port> And if you don’t want to store your password in plaintext, I would use a local proxy forwarder like CNTLM which allows you to direct all traffic through it … Read more

What does “trust proxy” actually do in express.js, and do I need to use it?

This is explained in detail in the express behind the proxies guide By enabling the “trust proxy” setting via app.enable(‘trust proxy’), Express will have knowledge that it’s sitting behind a proxy and that the X-Forwarded-* header fields may be trusted, which otherwise may be easily spoofed. Enabling this setting has several subtle effects. The first … Read more

How to configure a HTTP proxy for svn

Have you seen the FAQ entry What if I’m behind a proxy?? … edit your “servers” configuration file to indicate which proxy to use. The files location depends on your operating system. On Linux or Unix it is located in the directory “~/.subversion”. On Windows it is in “%APPDATA%\Subversion”. (Try “echo %APPDATA%”, note this is … Read more

Getting RAW Soap Data from a Web Reference Client running in ASP.net

I made following changes in web.config to get the SOAP (Request/Response) Envelope. This will output all of the raw SOAP information to the file trace.log. <system.diagnostics> <trace autoflush=”true”/> <sources> <source name=”System.Net” maxdatasize=”1024″> <listeners> <add name=”TraceFile”/> </listeners> </source> <source name=”System.Net.Sockets” maxdatasize=”1024″> <listeners> <add name=”TraceFile”/> </listeners> </source> </sources> <sharedListeners> <add name=”TraceFile” type=”System.Diagnostics.TextWriterTraceListener” initializeData=”trace.log”/> </sharedListeners> <switches> <add name=”System.Net” … Read more

spring scoped proxy bean

Section 3.4.4.5 of the spring docs explains it pretty well: (please note that the following ‘userPreferences’ bean definition as it stands is incomplete): <!– an HTTP Session-scoped bean –> <bean id=”userPreferences” class=”com.foo.UserPreferences” scope=”session”/> <!– a singleton-scoped bean –> <bean id=”userManager” class=”com.foo.UserManager”> <property name=”userPreferences” ref=”userPreferences”/> </bean> From the above configuration it is evident that the singleton … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)