Solved

httplistener add paramaters

Posted on 2013-05-20
3
351 Views
Last Modified: 2013-05-24
I am able to start a httplistener using the following code (masked url of course)

Dim listener As New HttpListener()
listener.Prefixes.Add(https://hostedconnect.themnet.com/m1/m11/)
listener.Start()

How would I add paramaters to this?

I need to pass 3 paramaters
name=somevalue
usr=someuser
pwd=somepassword
0
Comment
Question by:lrbrister
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
Luis Pérez earned 500 total points
ID: 39181511
Well, in fact I think that you need to pass the prefix as a String (between quotes):

listener.Prefixes.Add("https://hostedconnect.themnet.com/m1/m11/")

So I guess you can do this:

listener.Prefixes.Add("https://hostedconnect.themnet.com/m1/m11/?name=somevalue&usr=someuser&pwd=somepassword")

Hope that helps.
0
 

Author Comment

by:lrbrister
ID: 39181552
RolandDeschain

Errors below...but the listener started...no error on prefixes.
Does this just mean I have wrong parameters?

When I did that I goit the following error
sc
When I added the / at the end, I get
sc2
0
 

Author Closing Comment

by:lrbrister
ID: 39194152
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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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 Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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…

813 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

18 Experts available now in Live!

Get 1:1 Help Now