?
Solved

Persistent HTTP Connection

Posted on 2013-06-07
4
Medium Priority
?
360 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 71

Accepted Solution

by:
Qlemo earned 2000 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 71

Assisted Solution

by:Qlemo
Qlemo earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

719 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