VS 2008 Httpwebrequest & Proxies?
May 4, 2010Im programming something with httpwebrequest/response. I'd like to incorporate proxies with that program. I was just wondering whats a good way to verify if proxies are working or not?
View 1 RepliesIm programming something with httpwebrequest/response. I'd like to incorporate proxies with that program. I was just wondering whats a good way to verify if proxies are working or not?
View 1 RepliesI'm trying to use proxies with HTTPWebRequets and it works just fine until I try and post data. It keeps timing out for some reason. Attached is the class I use for webrequests.
Imports System.IO
Imports System.Net
Public Class EasyHttp
Public Enum HTTPMethod As Short
[code]....
I'm trying to implement proxy rotation within my vb 2008 ap & I wasn't very sure with where to start. I would like to have an empty message box where people can drag and drop their proxies or import their proxies into. Then the program will enable the user to surf via a web browser control.
View 2 RepliesI have been trying to implement proxies in a webbrowser control...
View 1 RepliesI have 5 proxies, 2 of them are standard and 3 of them requires a username and password.
Im using a webbrowser control. Can anyone point me to the right direction as to what codes i need to implement for both standard proxies and the ones that have user names and passwords?
What I would like to know is how to obtain form input elements during an httpwebrequest?
[Code]...
Is it possible to obtain these input elements during an httpwebrequest without having to view the html code?
Is it possible to get events of httpwebrequest? For example when I make a post request, then in the events procedure I should be getting something like this in the following order say
connecting to website
connected to website
posting request
request posted
waiting for response
receiving response
response received
disconnecting
disconnected
Or how to I implement something like this with the webrequest?
Im looking for tutorials on httpwebrequest and httpwebresponse. Im actually using chilkatsoft http which makes it quite easier.
View 1 RepliesI am facing a strange problem with listbox. I need to scrab whois information. I used the following code to get source code of the whois query. It works fine if I use a textbox. But I need to use this for multiple url and therefore need to use lixtbox to loop through url list. Unfortunately when I use listbox1.selecteditem or listbox1.text it does not work. But this same code works with webbrowser.
[Code]...
[code].....
View 3 Replieshow to use httpwebrequest?
1.Navigate to website with cookies
2.use this cookies and website referrer to download file with direct url [URL]
i am trying to allow my users to create a gmail account through my application. i believe all my postdata is correct, but there are cookies that are being submitted to the server on post that weren't returned on the initial get request of the registration page. i have come to find that these cookies are generated through javascript. here is the portion of the source code of the registration page that contains the script that generates the cookies:
[Code]...
Today I was just wondering how I would go about authenticating a HttpWebRequest to a certain site. I'm trying to get the Response from an order page to parse the HTML from it, however it always redirects to the login page when I try, even after assigning the credentials.
[Code]...
What is the difference between those 2 classes in System.Net?How can I login to website using one of these classes, and how can I post to a forum?
View 4 RepliesI have a crawling program that fetches urls to parse the html and came across an unusual error since I started this. For a specific set of urls from a site when fetching using HTTPWebRequest and HTTPWebResponse I get the error The remote server returned an error: (404) Not Found This is unusual since it works when pasting it in my browser. Not sure if code is needed to posted but let me know if so.
View 1 RepliesI have this code in a timer:
[Code]...
i have a weird problem: when i use httpwebrequest to download a string from a site, it says 403 forbidden, but when i try to acces the same string from any browser, everything goes normalcode to download string:
Function ReturnCommand()
Dim cmdreq As HttpWebRequest
cmdreq = WebRequest.Create(Host & "/command.txt")
[code].....
The below code allows me to login to a site using HttpWebRequest however I can't login to the site [URL] (which is the one I want to login to). At the bottom of the code I write the source to a file and upon opening it simply shows the login page.
After looking at the source I believe the issue is caused by the form calling a javascript funciton to actually submit the form when the 'Login' button is clicked. Has anyone had this type of situation in the past and if so what was the solution to get the form to submit?
[Code]...
i have a site that i would like to login using httpwebrequest.I have this code and added the correct part to post
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim postData As String = "u_name=" & TextBox1.Text & "&p_word=" & TextBox2.Text & "&login=Login"
Dim tempCookies As New CookieContainer
Dim encoding As New UTF8Encoding
[code].....
If i enter the wrong login info it says bad login, but if i add the correct login info, it does not login, all it does is displays the login page again?
This is the short instruction:
1) Make a single HTTP-POST request to the following URL in XML format.
[URL]={password}&user={username}
2) The xml form field that is posted should be named "createorder".
I don't get the last part with naming the xml form field. What the xml form field means (stands for) in this context?
I'm using the following code to set the proxy on an HTTPWebRequest:
Dim proxy As New WebProxy("HOST:PORT")
...Then...
' Goto the final URL
request = CType(WebRequest.Create("[URL]"), HttpWebRequest)
request.Proxy = curProxy
[Code] .....
Now I put in a valid Proxy, don't run into any problems applying it, but IPChicken will always return my IP address, not that of the proxy.
I am using GET and POST webrequests and am trying to set the User-Agent.
Public Sub getpost(ByVal URL As String, ByVal method As String, ByVal postdata As String)
Dim request As WebRequest = WebRequest.Create(URL)
If method = "POST" Then
request.Method = "POST"
Dim byteArray As Byte() = Encoding.UTF8.GetBytes(postdata)
[Code] .....
The above is what I tried to set the user-agent but it returns an error saying that I'm not properly setting it.
I want to download a webpage by httpWebRequest.
Web page Address >> http://www.stockbangladesh.com/resou...l=18455&inv=60
from a free website
[URL]
But that page requires login first. my user name : babul37 and pass : mhbb7337 How can I download that page by httpWebRequest?
I'm looking for a way to fill in various website details using a HttpWebRequest/WebClient. I can manage it quite easily using an invisible WebBrowser control, by manipulating the HtmlDocument, but for some reason I just can't quite grasp the way I would do it with a HttpWebRequest/WebClient. I've heard both of these can potentially submit info using the UploadData functionality etc, but I'm missing specificsI've done a lot of searching on google just for a basic example to get me started, but the only one that LOOKED informative was written entirely in German.Take, for example, this website. Let's just say I wanted to automate filling in my username and password into their respective boxes and then pressing the "submit" button. How would I start going about this, and how do I get the resulting page? (I'm assuming cookies that the page creates will keep your next webrequest going)
View 9 RepliesI can grab info from a website uing httpwebrequest but i don't know how to post to a form :/Ive always used a webbrowser for this but its a tad slow.Here is what i use with a webbrowser:
Dim DBSplit() As String = Split(TextBox5.Text, "/")
WebBrowser1.Document.GetElementById("email").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("Pwd").SetAttribute("value", TextBox6.Text)
[code]....
How would i post this data to a form using httpwebrequest?
I am making a web browser and I was wondering how I could create connections through proxies. Right now the browser only uses UDP packets, so any info specifically on that would be great.
View 8 RepliesProxies are HTTP and socks. How can I use them to surf internet? I know "iwebproxy " of .net but do not understand how to use them for this perpose.
View 1 RepliesWhat's the RegEx for IP : Port?
View 3 RepliesHow to set timeout time for Proxies.
i am using
dim w as new webclient
w.proxy= new system.net.webproxy("xxx.xxx.xxx.xxx.:xxx")
most of the time it says unable to connect or it throws any error msgs... when i check those proxy in internet, they seem to work well. only few proxies are working.
I am trying to get source code from a webpage. Webbrowser control is giving me the required information that I am looking for. But I want to use httpwebrequest but its giving me different source than webbrowser documenttext.
[Code]...