Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 20th, 2016, 5:25 PM   #1
JoZee
Newbie
 
Join Date: Nov 2011
Posts: 14
Rep Power: 0 JoZee is on a distinguished road
button click to send HTTP command

Hi,
I wanna build a simple program with buttons that sends HTTP command without opening a browser.

for example i want to send this:
http://192.168.14.74/cgi-bin/aw_cam?cmd=DTTB:1&res=1
when i click a button.

i have tried to use this code:
private void button1_Click(object sender, EventArgs e)
{
    // Launch browser to facebook...
    System.Diagnostics.Process.Start("http://192.168.14.74/cgi-bin/aw_cam?cmd=DTTB:1&res=1");
}
the button works but it open a web browser every time i click it.
Is there ant solution for that?

Thanks
JoZee is offline   Reply With Quote
Old May 30th, 2016, 7:43 AM   #2
pritaeas
mod_pritaeas
 
Join Date: May 2009
Location: The Netherlands
Posts: 251
Rep Power: 9 pritaeas is on a distinguished road
Re: button click to send HTTP command

Have a look at:

https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx
pritaeas is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
button click event handlers stevemartyn Java 2 Oct 5th, 2010 6:24 PM
Passing Value to button Click method? csrocker101 C# 9 Nov 2nd, 2009 3:42 PM
How can i run code when click on send button in outlook bustanji83 Visual Basic .NET 3 Sep 19th, 2009 12:59 AM
Command Prompt SkyPioneer Coder's Corner Lounge 5 May 3rd, 2006 10:07 PM
send() problem w/ http server kch_86 C 2 Nov 25th, 2005 12:53 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:54 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC