Old 18th October 2018, 12:14   #521
KnightRiderX
Junior Member
 
Join Date: Oct 2018
Posts: 4
Hello Everyone.

I'm having SendRequest Error if checking some sites.
For example, I'd like to get headers:

inetc::head /SILENT "https://35.169.75.153/" "D:\0.txt" /END
-> SendRequest Error

That's a random site - www.quora.com - I need smth else but anyway...
Also if I try this:

inetc::head /SILENT "https://www.quora.com/" "D:\0.txt" /END
-> Access Forbidden (403)

Please, help would be appeciated.
KnightRiderX is offline   Reply With Quote
Old 18th October 2018, 13:58   #522
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,912
https://35.169.75.153/ does not work in a modern browser either, it will not be able to match the certificate to the host. Adding the /WEAKSECURITY INetC option might be able to work around that.

403 is "The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated."

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 18th October 2018, 14:06   #523
KnightRiderX
Junior Member
 
Join Date: Oct 2018
Posts: 4
No, /WEAKSECURITY not working.
I guess I need 0x3300 flag to be set.
Is there any instruction of how to compile Inetc project?
KnightRiderX is offline   Reply With Quote
Old 18th October 2018, 14:15   #524
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,912
Quote:
Originally Posted by KnightRiderX View Post
I guess I need 0x3300 flag to be set.
And that is what? No flag is going to fix the 403 I'm guessing.

Quote:
Originally Posted by KnightRiderX View Post
Is there any instruction of how to compile Inetc project?
Depends on your setup of course. In Visual Studio you can probably just create a .dll project and add the source files.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 18th October 2018, 14:50   #525
KnightRiderX
Junior Member
 
Join Date: Oct 2018
Posts: 4
Question

Quote:
Originally Posted by Anders View Post
And that is what? No flag is going to fix the 403 I'm guessing.
I just mentioned 403 but my error is SendRequest Error. And I know that I need 0x3300 to be set. I have compiled the project but what should I do to make a .dll? I'm not a C++ guy.
KnightRiderX is offline   Reply With Quote
Old 18th October 2018, 15:14   #526
KnightRiderX
Junior Member
 
Join Date: Oct 2018
Posts: 4
This is URL I need to get data from:

https://35.189.228.145/win64

inetc::head /SILENT /WEAKSECURITY "https://35.189.228.145:443/win64" "D:\0.txt" /END

And still SendRequest Error.
KnightRiderX is offline   Reply With Quote
Old 19th October 2018, 01:16   #527
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,912
INetC uses the same HTTP library as Internet Explorer. Does that URL work in IE?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump