Https/ssl

09/18/2016 10:43 ssamko#1
Hello guys !
I wanna do a POST request to page: [Only registered and activated users can see links. Click Here To Register...]

But I cant make it work cos it has HTTPS. I tried GET with set cookies and I got all the datas from acc, but when tried POST it did nothing...some ideas ?

PS: This request is for depositting(reinvesting) money. I am too lazy to do t every 35h.

PS2: This is HYIP dont invest there money(scamers).

My code:
Code:
#include <Inet.au3>
#include <String.au3>
#include "KeyCodes.au3"
#include <WinHttp.au3>
#include <Constants.au3>
#include <AutoItConstants.au3>

;cookies
$SID="o12uanmala751uvvn4sl5oa6j1"
$password="900-a64df76812f14ae2f250d1b584ccecc8"
$suma="3.01"

;POST
$http_protocol = ObjCreate("winhttp.winhttprequest.5.1")
$http_protocol.open("POST", "http://dayeer.com/index.php?a=deposit")
$http_protocol.setrequestheader("Cookie", "PHPSESSID="&$SID&";password="&$password);&";"
$http_protocol.setrequestheader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8")
$http_protocol.setrequestheader("X-Requested-With", "XMLHttpRequest")
Global $post_packet_shop = "a=deposit&action=confirm&type=account_18&h_id=1&amount="&$suma&"&compound=0"
$http_protocol.send($post_packet_shop)
$http_protocol.waitforresponse()
$HTML=$http_protocol.ResponseText()
ConsoleWrite($HTML)
09/18/2016 11:34 YatoDev#2
Why everyone nowadays use the winhttp Object instead of the reliable WinHttp library...

Also $http_protocol is not realy a suitable name and i had the feeling you would know when to use global.

also your sid and passwort should be dynamically parsed
09/18/2016 11:44 alpines#3
_WinHttpSimpleSSLRequest is the way to go with _WinHttpOpen and _WinHttpConnect.
Forgot the nonsens about the object, the wrapper is way easier to use.
09/18/2016 12:58 ssamko#4
Quote:
Originally Posted by »FlutterShy™ View Post
Why everyone nowadays use the winhttp Object instead of the reliable WinHttp library...

Also $http_protocol is not realy a suitable name and i had the feeling you would know when to use global.

also your sid and passwort should be dynamically parsed
This is 1 of my older examples I rewrite....those things about global are not importatnt now...+ I dont need to get SID and that "pass" dynamically...I need only to find a solution for my problem...so to summarise...nothing usable

Quote:
Originally Posted by alpines View Post
_WinHttpSimpleSSLRequest is the way to go with _WinHttpOpen and _WinHttpConnect.
Forgot the nonsens about the object, the wrapper is way easier to use.
Thank you, I am gonna try it. :)
09/18/2016 17:25 YatoDev#5
Quote:
Originally Posted by ssamko View Post
so to summarise...nothing usable
Read again. i gave the exact same answere as Alpines and additional i reported things which might also be messed up or could be better.