Discussion in 'C, C++, C#' started by xpro, Aug 26, 2010.
np thanks a lot !
after all trial and error i got what i missing only capturing request is not enough it require proper referrer etc values too now finally i got it working creating yahoo now
Did you figure this out or are you still having trouble? I have a Yahoo bot that is run on httpwebrequest that works fine. What are you currently having trouble with?
lol well now i m having problem with hotmail page i followed ur old post too but no success yet any help ?
Hotmail took me forever to find out, but the key is to handle cookies yourself. Don't just reply on CookieContainer some cookies do not get stored when creating account on hotmail.
Xpro i can handle all stuff of hotmail only thing is i cant get recaptcha link in source no matter i accept txt/html or something else care to help bro ?
are you using fiddler to capture traffic?
yes i m using fiddler to capture traffic no success i cant disable java also hotmail require java to work ! really stuck here...
basically look at the request in fiddler that grabbed the captcha, and use Fiddle's search function to find out where its id/challenge is coming from. That way you can find which request you need to call.
In my experience, it's better to have a "web browser" package do this kind of work for you. Parsing html forms ends up in nothing but headaches and eventual rewrites because the site changes it's html.
Take a look at WatiN or Selinium integration into your project. This way, all your bases are covered.. cookies, form entries, urls, *site changes*. Worst case then would be if they change the names and/or values of visual elements like textboxes or dropdowns.
web browser sucks and cant be multithread !
Clearly, you have no idea what I actually said then. I didn't say draw an IE control and automate it. I said look into a "web browser" package. Not to mention you, in theory, could absolutly multithread a C# form with an IE control on it, but that is a crappy way to develop. Both of the solutions I offered up can be multi-threaded. Do some reading before you spout off garbage, please.
i know both and both are slow then normal httpwebrequest anyhow c# sucks in sockets , i moved to delphi lot faster and more richer...
Lol. Ok. You are the programming master. My 20 years experience in the field means nothing compared you your l33t engrish and skillz.
actually if you have any clue what you're doing the sockets namespace in the .NET framework is absolutely fantastic.
i m not saying i m programming master mate i just wanna say there is more better options then .net framework isnt it ? specially in sockets... little google will help you out chill and continue ur work
i use c# and the httpwebrequest and fail on the most sites to do simple things like a login.
i try different request headers as i sniffed them with firebug, but it doesn't work with them either.
what is the next thing to do?
Firefox and HTTP Live Headers plugin. Or use HTTPDebugger Pro, Fiddler...
When registering for sites, I always pass a referrer. It makes it look more legit. Most people don't just showup on their register page and signup. They go to the homepage, click register.. look in the headers you sniffed and see what is passed for the referrer.
Also, ensure you are spoofing your useragent. C# uses its own useragent if you don't specify one! If your coding an app for consumer use, allow them to select from a handful of different useragents. This will reduce the footprint.
Also store the cookies in a cookie container.
When sending the POST information, is there spaces in the POST data? If you sniffed "thisismy exampledata".. notice the space in the middle? You need to convert the space
You are right jerktronic , the WebBrowser control is much easier in the long run to have a project based on, and the WaitN lib is great!! irate:
MY main problem designing my bot led SEO is SCALE... how for example can you use PROXIES with the WaitN method? HASLE! yeah you can set IE's proxy on your local machine and programatically change is after every request - but then you have flash cookies to go and delete - what about the Last-Modifed cookie!!! pain in the ass!
If I want to make 1K requests through 1K proxies, all using 1K cookie profiles... I have to unfortunately use the socket.
Unless anyone else has another way?????????
Separate names with a comma.