Solved

Persistent HTTP Connection

Posted on 2013-06-07
4
330 Views
Last Modified: 2013-06-10
In VB.Net how would I go about sending a service request to a url
WITH
A persistent, long-lived HTTP connection?

I need to receove a steady stream of information and send to SQL Server

I can do the send along to SQL Server part.
0
Comment
Question by:lrbrister
  • 2
  • 2
4 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
ID: 39232844
Though HTTP isn't intended for keeping persistent connections, you can set up keep-alives for the corresponding socket:
http://technet.microsoft.com/en-us/library/cc957549.aspx
http://blogs.technet.com/b/nettracer/archive/2010/06/03/things-that-you-may-want-to-know-about-tcp-keepalives.aspx
0
 

Author Comment

by:lrbrister
ID: 39235450
Qlemo,
 I'm trying to slog through the examples on the links.

Do youhave a "cut through the red tape" example code?

I don;t need you to write my program.
Just a "keypoint" start
0
 
LVL 68

Assisted Solution

by:Qlemo
Qlemo earned 500 total points
ID: 39235517
Sorry, not really. I would have to mock up something without testing it ;-).
You will probably use this method http://msdn.microsoft.com/en-us/library/e160993d.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
to allow KeepAlives on an already open socket. I assume you have all the other code ready (open up a socket and such).
0
 

Author Closing Comment

by:lrbrister
ID: 39235703
Close enough

Thanks
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
More on Time zones in vb 2010 12 37
vb.net 2 37
Authentication of Web Services 3 49
Point to Current Row Ater Refresh Datagridview 3 20
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now