Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Using Proxies with HttpWebRequests Pin
Member 113675538-Nov-15 3:45
Member 113675538-Nov-15 3:45 
QuestionRe: C# Using Proxies with HttpWebRequests Pin
Richard MacCutchan8-Nov-15 4:00
mveRichard MacCutchan8-Nov-15 4:00 
AnswerRe: C# Using Proxies with HttpWebRequests Pin
Member 113675538-Nov-15 4:01
Member 113675538-Nov-15 4:01 
AnswerRe: C# Using Proxies with HttpWebRequests Pin
Eddy Vluggen8-Nov-15 4:06
professionalEddy Vluggen8-Nov-15 4:06 
GeneralRe: C# Using Proxies with HttpWebRequests Pin
Member 113675538-Nov-15 4:09
Member 113675538-Nov-15 4:09 
GeneralRe: C# Using Proxies with HttpWebRequests Pin
Eddy Vluggen8-Nov-15 4:22
professionalEddy Vluggen8-Nov-15 4:22 
GeneralRe: C# Using Proxies with HttpWebRequests Pin
Member 113675538-Nov-15 4:32
Member 113675538-Nov-15 4:32 
GeneralRe: C# Using Proxies with HttpWebRequests Pin
Eddy Vluggen8-Nov-15 4:53
professionalEddy Vluggen8-Nov-15 4:53 
Member 11367553 wrote:
So for instance 3 proxies are imported for example
If those are the exact lines in the text-file, I'd expect them to be strings in the listview.

Member 11367553 wrote:
I'm wanting each request to pull a proxy from the proxyView list and use it in
the request that's being made.
Once you have your loop set up, have it call the method you showed in the first post. You'd still need to modify that to actually set a proxy. The example-code on MSDN[^] shows how to set a proxy for a request.

Member 11367553 wrote:
The String Username and String Password are user defined they enter there
username & password.
You'll need to get those into variables before you start the loop.

C#
private Button1_Click(object sender, EventArgs e)
{
    string userName = textBox12.Text;
    string passWord = textBox34.Text;
    foreach (var item in proxyView.Items)
    {
        postRequest(userName, passWord, item);
    }
}
What do you intend to "post"? If the answer is "dunno", then I'd suggest a "GET", not a post.

I don't know what level college is, or whether pointing to the documentation is sufficient. If it isn't, just say so.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: C# Using Proxies with HttpWebRequests Pin
John Torjo8-Nov-15 19:09
professionalJohn Torjo8-Nov-15 19:09 
Questionprevent method execution on design time using attributes Pin
Gilbert Consellado7-Nov-15 15:59
professionalGilbert Consellado7-Nov-15 15:59 
AnswerRe: prevent method execution on design time using attributes Pin
George Jonsson7-Nov-15 18:00
professionalGeorge Jonsson7-Nov-15 18:00 
AnswerRe: prevent method execution on design time using attributes Pin
Richard MacCutchan7-Nov-15 21:11
mveRichard MacCutchan7-Nov-15 21:11 
GeneralRe: prevent method execution on design time using attributes Pin
Gilbert Consellado8-Nov-15 1:33
professionalGilbert Consellado8-Nov-15 1:33 
AnswerRe: prevent method execution on design time using attributes Pin
OriginalGriff7-Nov-15 22:48
mveOriginalGriff7-Nov-15 22:48 
GeneralRe: prevent method execution on design time using attributes Pin
Gilbert Consellado8-Nov-15 1:35
professionalGilbert Consellado8-Nov-15 1:35 
GeneralRe: prevent method execution on design time using attributes Pin
OriginalGriff8-Nov-15 1:41
mveOriginalGriff8-Nov-15 1:41 
GeneralRe: prevent method execution on design time using attributes Pin
Gilbert Consellado8-Nov-15 3:31
professionalGilbert Consellado8-Nov-15 3:31 
GeneralRe: prevent method execution on design time using attributes Pin
Gilbert Consellado8-Nov-15 3:37
professionalGilbert Consellado8-Nov-15 3:37 
GeneralRe: prevent method execution on design time using attributes Pin
OriginalGriff8-Nov-15 4:03
mveOriginalGriff8-Nov-15 4:03 
GeneralRe: prevent method execution on design time using attributes Pin
Gilbert Consellado8-Nov-15 14:38
professionalGilbert Consellado8-Nov-15 14:38 
AnswerRe: prevent method execution on design time using attributes Pin
Nathan Minier9-Nov-15 3:18
professionalNathan Minier9-Nov-15 3:18 
Questiongdi+ shape is not a reference object in Arraylist? Pin
smallkubi7-Nov-15 5:47
smallkubi7-Nov-15 5:47 
AnswerRe: gdi+ shape is not a reference object in Arraylist? Pin
Richard MacCutchan7-Nov-15 6:14
mveRichard MacCutchan7-Nov-15 6:14 
GeneralRe: gdi+ shape is not a reference object in Arraylist? Pin
smallkubi7-Nov-15 14:01
smallkubi7-Nov-15 14:01 
GeneralRe: gdi+ shape is not a reference object in Arraylist? Pin
Richard MacCutchan7-Nov-15 21:07
mveRichard MacCutchan7-Nov-15 21:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.