
Asp.net (vb.net) fix
- or -
Post a project like this4738
€90(approx. $103)
- Posted:
- Proposals: 8
- Remote
- #275587
- Completed
Web developer having 9 years of experience in ASP.Net, MVC, Entity Framework, LINQ, SQL Server2005/2008
Web site designing, Web application development, E-commerce, Custom Application Development, 2D/3D video animation design, and Mobile Application

ASP.NET core, postgre sql, kendo ui, react js, angular js, MVC4,5/C#.NET/VB.NET/Jquery/SQL/AJAX/HTML5
107920429750451625434201471573452381444156436011
Description
Experience Level: Intermediate
I need to send data to a remote URi from within a vb.net application. I have been given a PHP script and a basic spec and from those I have managed to develop the code but I just can't get the required results and the company which owns the data is not able to provide support for aspp.net
So in simple terms i need to send a request to uri which includes a querystring of data, authenticate the request and then read the response.
I've tried it manually so I know it works ok but when I use my code it doesn't work
string server = "http://server"
string poststring = "param1=ab¶m2=cd"
Dim linkurl As String = server & "?" & poststring
Dim requestURI As Uri = Nothing
Uri.TryCreate( _
linkurl, _
UriKind.Absolute, _
requestURI)
Dim nc As New NetworkCredential(username, password)
Dim credentialCache As New CredentialCache
credentialCache.Add(requestURI, "Basic", nc)
Dim httpRequest As HttpWebRequest = HttpWebRequest.Create(requestURI)
httpRequest.Credentials = credentialCache
httpRequest.Method = WebRequestMethods.Http.Get
Dim uploadResponse As HttpWebResponse
uploadResponse = httpRequest.GetResponse
Dim responseReader As New StreamReader(uploadResponse.GetResponseStream())
postResponse = responseReader.ReadToEnd()
responseReader.Close()
If you think this is something you can fix let me know and I'll send you the uri, arguments and username, password
I need a solution that will work in Virtual Studio 2005
So in simple terms i need to send a request to uri which includes a querystring of data, authenticate the request and then read the response.
I've tried it manually so I know it works ok but when I use my code it doesn't work
string server = "http://server"
string poststring = "param1=ab¶m2=cd"
Dim linkurl As String = server & "?" & poststring
Dim requestURI As Uri = Nothing
Uri.TryCreate( _
linkurl, _
UriKind.Absolute, _
requestURI)
Dim nc As New NetworkCredential(username, password)
Dim credentialCache As New CredentialCache
credentialCache.Add(requestURI, "Basic", nc)
Dim httpRequest As HttpWebRequest = HttpWebRequest.Create(requestURI)
httpRequest.Credentials = credentialCache
httpRequest.Method = WebRequestMethods.Http.Get
Dim uploadResponse As HttpWebResponse
uploadResponse = httpRequest.GetResponse
Dim responseReader As New StreamReader(uploadResponse.GetResponseStream())
postResponse = responseReader.ReadToEnd()
responseReader.Close()
If you think this is something you can fix let me know and I'll send you the uri, arguments and username, password
I need a solution that will work in Virtual Studio 2005
Jason N.
95% (4)Projects Completed
15
Freelancers worked with
12
Projects awarded
27%
Last project
9 Dec 2013
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies