guys i have agreed to a challenge in which I have to simulate the login process of two websites programatically. I am about to give up, maybe not if someone out here is kind enough to help me?
Please only show interest if you ALREADY HAVE solved this in C#. I am ignoring everyone asking for more than 1 day. I need the finished code immediately. Do it now, when it is working only then leave a comment here and get immediately paid. It's pretty easy and doable for any C# expert in like 30minutes, so please refrain from asking for maximum budget. If I wanted, I'd go to stackoverflow but am too busy doing more important stuff right now. So you might as well jjst go to SO if you are just as bad as me and i will gladly award you when you got someone else get the job done, i could care less.
website 1:
[login to view URL]
website 2:
[login to view URL]
Step 1: Create a test account on both sites.
step 2: Choose which site you wanna start off with first.
step 3: after creating an account, clear your browser cache and cookies so you don't get confused from the existing cookies.
step 4: Open a new tab on your browser
step 5: open developer tools (chrome/opera), click Network-tab and monitor the network traffic of your webrowser when you do the next steps.
step 6:Now visit the site, login with your testaccount. While you're doing that, keep your eyes on the developer tool for incoming Webresponses and outgoing Webrequests. Make notes in your head as you go. We need to know which generated cookies and which webrequests are needed for the login process.
step 7: when you think you know how to simulate this exact process in C#, go for it.
step 8) program in c# the exact same procedure via HttpWebrequests and HttpWebResponses.
(Open website, collect cookies while making precalls and finally login).
i tried this myself. Site1 is a little tricky because the login-form is opening on a separate xhr call after clicking the Login button. Here you'll need a hidden token for the login POST-data from a hidden input value of the login-form. I just can't handle the xhr-calls of site 1, its never returning me the login-form when i try to read the source, which I need for the token :(.
site 2 confused me the most. i did everything just like my webbrowser (same headers, same useragent, same postdatas, same cookies, same referer, same everything and all parameters - still it gives me Webexception with Errorcode 403 when I try to login. It should've been 200 for successful login and 401 for invalid credentials. My IP is not blacklisted from the servers either.
Hi, I can successfully solve your problem with C# and webdriver.
I have built similar project before.
I can start work right now and successfully deliver final result to you.
Thanks.
Hello Sir.
I am very interested in your project.
I have full exp in C++and C#.
To be honest, i don't have experience in that operation in C#.
But i have experience in C++.
I tried to get scrap data from one site.
In Chrome, everything goes well, but in my program sometimes error400 occur.
so I solved this program with socket communication.
i think your problem is similiar as my situation.
difference is C++ and C#.
if you give me task, i will try.
thanks.