Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 22:31

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

Advertisement



Communicating with website

Discussion on Communicating with website within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2015
Posts: 63
Received Thanks: 16
Communicating with website

Hello, I was wondering how could I make (C# prefered or C++ program), to login to website and make some action, and then log off.
So I found following lines in website I need:
type: "POST",
url: "index.php?a=login",
data: "pw="+$('#lpw').val()+"&un="+$('#lun').val(),

when I try doing that manually in my broswer:

nothing happens, website just reloads its homepage... is there something wrong that I'm doing with this url or whut o.O?
Regards...
LogLoft420 is offline  
Old 11/05/2017, 21:26   #2



 
Shawak's Avatar
 
elite*gold: 0
The Black Market: 259/0/0
Join Date: Apr 2010
Posts: 10,289
Received Thanks: 3,613
Your request type is wrong. By visiting the link you are performing a GET request and not a POST one. Read more about request types .
Shawak is offline  
Thanks
1 User
Old 11/05/2017, 23:12   #3
 
elite*gold: 0
Join Date: Jun 2015
Posts: 63
Received Thanks: 16
Quote:
Originally Posted by Shawak View Post
Your request type is wrong. By visiting the link you are performing a GET request and not a POST one. Read more about request types .
Thanks for sharing, but after reading that I still have hard time understanding why it won't work.
So lets say we don't know if site uses urlencode, so I'm trying all the possibilities...:

HTML Code:
<?php
$var="a=login pw=myusername un=mypassword";
echo $var."<br>";
$var2=urlencode($var);
echo "<br>
<a href='demo-urldecode.php?$var'> This link does not use urlencode and post data as it is</a><br>";
echo "<br>
<a href='demo-urldecode.php?$var2'> This link does use urlencode and then post data</a><br>";
?>
How am I suppost to find out what $var to use just looking at the GET method?
Tried these:
$var="a=login pw=myusername un=mypassword";
$var="a=login&pw=myusername&un=mypassword";

Any hints?
LogLoft420 is offline  
Old 11/05/2017, 23:51   #4



 
Shawak's Avatar
 
elite*gold: 0
The Black Market: 259/0/0
Join Date: Apr 2010
Posts: 10,289
Received Thanks: 3,613
Use .
Shawak is offline  
Old 11/06/2017, 11:48   #5
 
elite*gold: 0
Join Date: Jun 2015
Posts: 63
Received Thanks: 16
Quote:
Originally Posted by Shawak View Post
Use .
But doesn't that require edits on website side? I don't own the website btw. I'm just a client.
LogLoft420 is offline  
Old 11/06/2017, 15:07   #6



 
Shawak's Avatar
 
elite*gold: 0
The Black Market: 259/0/0
Join Date: Apr 2010
Posts: 10,289
Received Thanks: 3,613
It doesn't. Since you are using C# you can do something similar to this:
Shawak is offline  
Thanks
1 User
Old 12/07/2017, 02:22   #7
 
elite*gold: 0
Join Date: Jan 2014
Posts: 370
Received Thanks: 167
At first you should go with HTTPTrace (Chrome) and check the sent data.
Then tell us the language you´re coding in.
Onkelmat is offline  
Reply


Similar Threads Similar Threads
[Selling] Website coding & editing! Cann create your website or edit your website cheep!
01/17/2016 - Coders Trading - 20 Replies
Hello i'm a web developer under education. Forum createde by me!: http://luckycs.com/ My skill is the following: asp.net = 5% mvc = 35% Umbraco (CMS) = 60% javascript/jquery = 40%
[Question] Why do we need redirect IP for communicating with the client?
03/10/2013 - SRO Coding Corner - 7 Replies
Hey guys, A guy here at epvp recently asked me this question, and I wondered why, too. Can anyone explain IN DETAIL why do we need phconnector, nuconnector, and any other proxies to reach sro_client.exe? Yes, of course, bots and other programs, but why do THEY use localhost to communicate? It must have the reason... Would help us a lot to understand the communication. :) Thanks in advance. :)
C# communicating with injected dll
05/17/2009 - CO2 Programming - 1 Replies
Soooo since injected dlls are in these days i wonder is it possible make gui in C# and call functions from the injected dll and how it should be done if anyone could poke me to right direction.
SrProxy is NOT communicating with Agbot
05/19/2008 - Silkroad Online - 6 Replies
After dcing too much...I found SrProxy and Loader to replace nuconnector. I installed everything and everthing seems to work except one small detail. When the game starts and I start bot, there is no communication with my character standing there. So for the sake of troubleshooting, I repatched the nuconnector and the character would respond to the bot. But not with SrProxy. The bot is running on its own page but not coinciding with my character. I would sure appreciate any help on this topic.



All times are GMT +1. The time now is 22:32.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.