Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 12:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Https/ssl

Discussion on Https/ssl within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
ssamko's Avatar
 
elite*gold: 1908
Join Date: Jan 2013
Posts: 828
Received Thanks: 629
Https/ssl

Hello guys !
I wanna do a POST request to page:

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)
ssamko is offline  
Old 09/18/2016, 11:34   #2
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
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
YatoDev is offline  
Old 09/18/2016, 11:44   #3
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
_WinHttpSimpleSSLRequest is the way to go with _WinHttpOpen and _WinHttpConnect.
Forgot the nonsens about the object, the wrapper is way easier to use.
alpines is offline  
Thanks
1 User
Old 09/18/2016, 12:58   #4
 
ssamko's Avatar
 
elite*gold: 1908
Join Date: Jan 2013
Posts: 828
Received Thanks: 629
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.
ssamko is offline  
Old 09/18/2016, 17:25   #5
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
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.
YatoDev is offline  
Reply


Similar Threads Similar Threads
elitepvpers goes HTTPS!
11/18/2015 - e*pvp News - EN - 17 Replies
Not all of you might be aware of this, but for the past couple of months we have been running a semi-official beta test in an effort to fully integrate HTTPS into our website. As of today, we consider this work to be complete and are pleased to announce that you can now access the site via a secure HTTPS connection! How do I access elitepvpers via HTTPS? Just follow this link. Note that you might have to log in after following the link, at least if you have never accessed elitepvpers via...
[HOW-TO] always use HTTPS on elitepvpers.com
07/26/2015 - Tutorials - 2 Replies
Hi Guys, I just wanted to drop by this quick guide to use elitepvpers with HTTPS all the time to encrypt the connection between client (YOU!) and the server. So, first of all, I tested this in Chrome, but it should work in Firefox and Opera too. Step 1: Install "HTTPS Everywhere" This is a plugin from the EFF (Electronic Frontier Foundation).
https://elitepvpers.com
05/02/2014 - Main - 7 Replies
https://elitepvpers.com Warum gibt es eigentlich noch keine verschlüsselte Verbindung zu epvp? :( MfG
Page ( Like Here ) : https://www.facebook.com/sroadvs Group ( Join Here ) : https:/
07/24/2013 - SRO PServer Advertising - 2 Replies
Page ( Like Here ) : https://www.facebook.com/sroadvs Group ( Join Here ) : https://www.facebook.com/groups/adverstingyourser ver/ Page ( Like Here ) : https://www.facebook.com/sroadvs Group ( Join Here ) : https://www.facebook.com/groups/adverstingyourser ver/ Page ( Like Here ) : https://www.facebook.com/sroadvs



All times are GMT +2. The time now is 12:56.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.