![]() |
|
[.NET] Get website source using cookie and proxy - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Get website source using cookie and proxy (/showthread.php?tid=5105305) |
Get website source using cookie and proxy - SIM-2362662 - Dec 23, 2015 So i basically need a code to get a website source. It has to use cookies (because otherwise that website will return an error) and be able to use proxy. I tried this code : Code Private Function page_source(ByVal URL As String, proxy As String) As StringThis code works fine on most of the websites i tried it. But not on the website i need right now. That website is : http://pastebin.com/mQqLKtes * - Kraizy - Dec 23, 2015 What kind of error do you get? * - SIM-2362662 - Dec 23, 2015 (Dec 23, 2015 08:09 AM)Kraizy Wrote: What kind of error do you get?
* - Kraizy - Dec 23, 2015 Do you get this error when sending the GET request to amazon.com or do you POST something? * - SIM-2362662 - Dec 23, 2015 (Dec 23, 2015 08:20 AM)Kraizy Wrote: Do you get this error when sending the GET request to amazon.com or do you POST something? I'm not sending any POST data. I'm using the code I posted on this thread. * - Kraizy - Dec 23, 2015 Well, I guess it works fine when not using any proxy, right? Think it has something to do with your proxy, maybe blacklisted or something else...where do you get your proxies from? * - Stаlkеr - Dec 23, 2015 Just saying myhabit nearly uses more captchas than amazon ^^ and you a other url with for a cracker btw I'll have a look at it :) * - SIM-2362662 - Dec 23, 2015 (Dec 23, 2015 08:24 AM)Kraizy Wrote: Well, I guess it works fine when not using any proxy, right? Think it has something to do with your proxy, maybe blacklisted or something else...where do you get your proxies from? I'm not even using a proxy. this is the code i use : Dim source As String = page_source(url, "") (Dec 23, 2015 08:25 AM)๖ۣۜStalker Wrote: Just saying myhabit nearly uses more captchas than amazon ^^ and you a other url with for a cracker btw I'll have a look at it :) Number of captchas doesnt really matter. because the cracker will use proxies. So it will try just a single time with each proxy. Thank you for looking into it . Let me know if you find anything 🤝 * - Kraizy - Dec 23, 2015 Don't know..I don't have any problems printing the html source with those few lines: PHP Code * - SIM-2362662 - Dec 23, 2015 (Dec 23, 2015 08:32 AM)Kraizy Wrote: Don't know..I don't have any problems printing the html source with those few lines: Are you sure? Because this is what i get : Spoiler (Click to View) EDIT : It was not working because of a HF typo bug. It works fine if i dont use any proxy. But it return an error if i try to use proxy. This error : Spoiler (Click to View) * - Kraizy - Dec 23, 2015 Well I think it has something to do with your proxies, maybe they are broke?
* - SIM-2362662 - Dec 23, 2015 (Dec 23, 2015 08:48 AM)Kraizy Wrote: Well I think it has something to do with your proxies, maybe they are broke? Yep . I think that was the problem! Thank you so much! |