M
M
mr-ZA2019-05-10 13:38:35
cmd/bat
mr-ZA, 2019-05-10 13:38:35

Send GET/HTTP Request to https site?

Hello everyone, I'm trying to get the content of the site for further parsing.

<b>>>CMD<<</b>
> open site.ru 80                          -- (site.ru для примера)
   Connecting To www.site.ru...
   Press any key
   Connection to host lost.             -- и собсно все, нашел в сети что такое происходит тк сайт переадресовывает на https://
> open site.ru 443                         -- результатов не дает

Went further, installed openSSL and try to connect:
> openssl s_client -connect www.site.ru:443

Result:
CONNECTED(000001AC)
write:errno=10054
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 317 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)

I tried to google what is the error, similar answer is not suitable because the -ssl3 key is not available

https://stackoverflow.com/questions/25485816/opens...

How to get the page manually normally plz tell me?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2019-05-10
@mr-ZA

From the tools out of the box, you can write a js / vbs script, in it, using the MSXML2.XMLHTTP object, you can make HTTP requests. And there you can further parse the answer.

A
AUser0, 2019-05-10
@AUser0

There is this wonderful thing called GnuWin32 , which is a Windows-compatible version of various UNIX command-line utilities.
There is also a wget utility , which is designed to make requests to HTTP servers.
With its help, and get the desired HTTPS page as a file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question