HTTP Connect via NTLM authenticating proxy server

I am trying to write Connect calls via a NTLM authenticating proxy server. I open a socket to the proxy server and send it a “CONNECT x.x.x.49:80 HTTP/1.1\r\n\r\n”. I expect this to fail as it is an authenticating proxy server but it fails and also closes my connection to the proxy server. I am using Wireshark to check packet values. I can see “Proxy-Connection: close\r\n”. If I do a GET it does not close the connection. My question is if it is correct for a failed Connect call to close my socket connection?

--------------Solutions-------------

I'm not 100% clear about your question - I would not expect the first CONNECT to fail with an NTLM proxy server, as it should have sent a Proxy-Authenticate: NTLM header back.

In any case, proxy server has the full right to close the client-side connection in a case of failure, so the answer to your question is "yes". It is odd that it does not do the same for GET, however proxies are more limited with what they can do as a response to CONNECT, and this one may decide that it can't support HTTPS for your request.

Category:http Time:2011-02-03 Views:1

Related post

  • Live Mail Sync Error 0x800488EB with NTLM Authenticated Proxy Server 2014-02-13

    Hi, We are using NTLM Authenticated Proxy Server and Live Mail is not working with it. When I use direct connection it is working. Sync Error 0x800488EB --------------Solutions------------- Hi volkans80, Welcome to Microsoft Community. I understand t

  • I am connected to internet through proxy-server. When I try and access shared data on the network I get an error "cannot access -------------------error code x80070035". 2013-10-23

    original title: networking problem i am connected to internet through proxy-server, problem with me is when i try to access the shared data from other computers of my network it gives message "cannot access -------------------error code x80070035" ,

  • Cannot connect to VPN behind proxy server 2012-12-15

    I am using Windows 7 as my O.S. I am connected to internet world via proxy server with authentication. When I tried to connect to a VPN service by going through the 'Connect to workplace' option, I am getting an error 800 saying it can't connect. Any

  • Lan Connection Setting Keep Check Proxy server 2014-05-26

    I am getting Keep Proxy check in Lan Connection Setting i have tried every thing but no luck.... is there some thing else that i can do that?? --------------Solutions------------- Hello, Thank you for posting your query in Microsoft Community. As per

  • random internet connection trying to use proxy server 2013-01-18

    when I turn the computer on it randomly fails to connect to internet because it couldn't find proxy server. I have to reset windows internet connection deleting checkmark next to "use proxy server". This happens both with wired and wireless connectio

  • Windows cant connect to network's proxy server settings 2015-01-01

    Hello, 2.5 days ago my Dell XPS laptop stopped working properly. It says that its connected to the internet but none of the programs that use the internet (Google chrome, firefox, Internet explorer, msn messenger, etc) are accessing it, except skype.

  • how to connect Zune through a proxy server 2012-12-25

    My Zune SW is unable to log onto my windows live ID through my companies proxy server. This effects me at work and home. I there a way to route the Zune SW around the proxy server? Thanks. --------------Solutions------------- I believe Zune uses the

  • "online Pictures" is greyed out and I am behind a authenticated proxy server. 2013-01-16

    Why would this be greyed out when I have a internet connection? --------------Solutions------------- Hello Gregory, 1. Is the option ‘Online Pictures’ is grayed out or it’s unable to pull up the results when clicked on it? 2. Does the other options u

  • SharePoint authentication via a proxy server 2010-06-16

    A client has trouble logging into our webpart (SP 2007). Apparently, his internet connection is via a proxy server. He has no problem logging in to our main website. Authentication from both the webpart and the website is through the same API. Any su

  • Unable to upgrade the defination by using internet connection via proxy server 2013-05-15

    Hi, About 2 weeks back, I have started to use Microsoft security essential. I have to connect through proxy server to the internet. First time when I have downloaded and installed security essential, it updated through the proxy connection. From that

  • Connection Across Proxy Server 2013-11-05

    I am Not able to connect to my Office LAN through Cisco Connect VPN across the Proxy Server.....where as is Connecting on my personal network.????Cna Some one Help in that.... --------------Solutions------------- Hi AnnuRawat, 1) What exactly happens

  • How to protect a web server FROM a reverse proxy server 2010-10-10

    I have a website "www.website.com". Recently I found out that somebody has set up a reverse proxy with an almost identical url "www.website1.com" in front of my website. I'm concerned of those users who came to my website through that reverse proxy.

  • Fetching avatars from gravatar with gitg behind an authenticated proxy 2012-03-15

    I'm still a bit new to git, and I use gitg to visualize trees. It works quite well (I managed to make it crash on some big projects, but never mind), and I saw on Windows computers that it displays gravatars when committers have one. I have seen this

  • Use Microsoft Outlook 2010 over authenticated proxy 2014-04-03

    I'm trying to configure my mail accounts on outlook 2010 but outlook seems unable to connect to internet through my university campus internet connection. The internet connection go's through an authenticated proxy server which I have already set in

  • i m using proxy server and i m not able to update automatic microsoft security essential. plz help me 2014-09-10

    Ideas: microsoft security essential connection failed --------------Solutions------------- MSE does not support updating through an authenticated proxy server. You will need to update manually by downloading the engine and definitions from the Malwar

  • C# webclient and proxy server 2009-05-03

    I am using a web client class in my source code for downloading a string using http. This was working fine. However, the clients in the company are all connected now to a proxy server. And the problem started from this. When I have tested my applicat

  • How to identify whether http request is from browser or from proxy server (or server)? 2011-08-22

    I have a server that takes http request and return json data. How does my server know if the http request is from a client browser and not from a server? especially if traffic may proxy from a client to another server and make a call to my server. I

  • Axis2 NTLM Authentication for Proxy-Server 2011-01-13

    What is the correct way to authenticate an Axis2 (Version 1.4) Client at a http proxy server that requires NTLM authentication? I'm using the following code to provide the proxy credentials, but the authentication still fails (see details at the end)

  • WebClient and proxy server (Ntlm auth maybe?) 2009-09-23

    Having some issues connecting to internet from an application where a customer is using a proxy server. The following code seems to work most other customers, including those that use proxies. Dim wc As New WebClient wc.UseDefaultCredentials = True w

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 0.554 (s). 13 q(s)