Skip to main content
Code snippet
Source Link

A Golang web scraper needs to extract information from a webpage that is NTLM-authenticated.

Having a valid username & password, how can the web scraper perform the NTLM 4-way handshake with the server in order to gain access to the protected webpage behind?

url, username, password := "http://www.some-website.com", "admin", "12345"

client := &http.Client{}
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("Authorization", "NTLM")
res, _ := client.Do(req)

A Golang web scraper needs to extract information from a webpage that is NTLM-authenticated.

Having a valid username & password, how can the web scraper perform the NTLM 4-way handshake with the server in order to gain access to the protected webpage behind?

A Golang web scraper needs to extract information from a webpage that is NTLM-authenticated.

Having a valid username & password, how can the web scraper perform the NTLM 4-way handshake with the server in order to gain access to the protected webpage behind?

url, username, password := "http://www.some-website.com", "admin", "12345"

client := &http.Client{}
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("Authorization", "NTLM")
res, _ := client.Do(req)
Rewording
Source Link

A Golang web scraper needs to extract information from a webpage that is NTLM-authenticated.

Having a valid username & password, how does a Golangcan the web scraper perform the NTLM 4-way handshake with athe server in order to gain access to the protected webpage behind?

Having a valid username & password, how does a Golang web scraper perform the NTLM 4-way handshake with a server in order to gain access to the protected webpage behind?

A Golang web scraper needs to extract information from a webpage that is NTLM-authenticated.

Having a valid username & password, how can the web scraper perform the NTLM 4-way handshake with the server in order to gain access to the protected webpage behind?

Source Link

Golang web scraper NTLM authentication

Having a valid username & password, how does a Golang web scraper perform the NTLM 4-way handshake with a server in order to gain access to the protected webpage behind?