Connecting Through Https Sites

Apr 26, 2011

I'm creating an API for a particular website. This API will be in the form of a referable DLL. I've tried the normal HttpListner but it errors when getting any data that is through https (basically anything specific about the currently logged in user). I also can't log in using it. My next attempt involved a hidden webbrowser but that is just as hacked up as it sounds (and very glitchy seeing as the WebBrowser likes to interrupt processes that are currently running with its events). I need a system that works and is fast and efficient (I know, I know, kind of a oxymoron). Does anybody know how to do this?I'm using VB.net so any .net code examples are acceptable.

View 2 Replies


ADVERTISEMENT

VS 2008 WebRequest An HTTPs Page - Enable Support Of HTTPs Requests

Jul 7, 2009

So the exact site I'm trying to login to is GMail. I can send the POST data to login fine, but after that GMail performs an authentication (the redirect URL contains 'SetSID?'). Now with my HTTPWebRequest I don't see a way to enable support of HTTPs requests. Is there a way to get around this and successfully login?

View 4 Replies

Get If An Url Is Http Or Https?

Oct 27, 2010

How do you get if an url is http or https. Like if you want to get the type of [URL], it shows https, and if you want to get the type of [URL], it shows http.

View 12 Replies

Asp.net - How To Create HTTPS Website

Aug 5, 2011

I want to create a HTTPS (Secure) Website. And how to create a Asp.net website using vb.net?

View 1 Replies

Download A File From HTTPS Using .net?

Jul 21, 2010

I need to download a file from web i.e https:www.xxx.com using vb.net and save it to C drive of system.

Below is the code :

Dim URI As String = ftpHost & ftpFile
Dim oRequest As System.Net.HttpWebRequest = CType(HttpWebRequest.Create(URI), HttpWebRequest)
oRequest.Credentials = New System.Net.NetworkCredential(userName, pwd)

[code]....

But this is not reading anything.

View 3 Replies

File Transfer On HTTPS?

Jun 22, 2010

I wrote a code to send file as below:

Dim objXMLDoc As New XmlDocument
objXMLDoc.Load("C:InetpubwwwrootXMLSchema_TestXML1773777.xml")
Dim blnResponse As Boolean

[code].....

View 1 Replies

HTTPS Post With Private Key?

Jun 2, 2009

I have a very simple application that posts an XML file to a web service.

ohttp.open("POST", "https://target.web.site")ohttp.send(stringrequest)

Now this works on most workstations, the prompt for the private key is displayed the user presses OK and the XML is passed and a response is received. I have found some client computers that this does not work on. The computer does not display the prompt for the private key. I have been trying to figure out what is suppressing/blocking the prompt for the private key confirmation.

View 1 Replies

HTTPs Redirect Just Not Working

Feb 24, 2012

I am using the following code to try and redirect to https, it is not working.

If Not Request.IsLocal AndAlso Not Request.IsSecureConnection Then
Dim redirectUrl As String = Request.Url.ToString().Replace("http:", "https:")
Response.Redirect(redirectUrl)
End If

What I can check, using fiddler now to look at traffic. SSL is set in IIS 6, cert is correctly installed on site.

View 1 Replies

HTTPS Request & Third Party API?

Oct 5, 2011

Working on a program that makes use of a third party API. That API can be found here:[URL]I'm a beginning/intermediate VB.Net developer, and have written other programs, but not using something like this. I suspect I'll need to create a Web.Request (Secure) object and 'POST' to the URL with a stream of XML text. That's the general idea, right? The actual URL is internal to our network and I have that information of course.

View 9 Replies

Post A XML File To A HTTPS Url?

Apr 26, 2010

Here's what I did i VB 6 and I want to do the same in vb.net

Dim obj As MSXML2.XMLHTTP60
Dim request_string As String
obj.Open "POST", "https://apitest.authorize.net/xml/v1/request.api", False

[Code].....

View 2 Replies

Asynchronous Transactions With Xml Https Post

Jun 3, 2011

I basically have a few thousand transactions 7,000 - 10,000 transactions to process over a short time. The flow goes like this.

---> ----> ---> ---> receive (1000) as each transaction takes approx 2 seconds so if i were to process synchronously it would take all night......

Now first i would like to ask if i am going about this the right way ? the service i am communicating with is not .net but is built to handle large amounts of requests. I have obtained the following code that suggests it will do what i am after

dim strxmlreq as string = '(this is where i input my xml string)
Dim request As HttpWebRequest

' Create the request

[CODE]...

The problem i have is if the above will work for me where exactly do i catch the returned xml string ? I assumed "result" would be the xml output string.

View 3 Replies

Download File Over HTTPS Using .NET (dotnet)

Jan 26, 2010

I would like to download a file using VB.NET (preferably) or C# via HTTPS.

I have this code to download a file over plain HTTP:

Dim client As WebClient = New WebClient()
Dim wp As WebProxy = New WebProxy("[IP number of our proxy server]", [port number of our proxy server])
wp.Credentials = CredentialCache.DefaultCredentials
client.Proxy = wp
client.DownloadFile("http://sstatic.net/so/img/logo.png", "c:logo.png")

How do I change this code to download a file that is stored on an HTTPS-server? I guess it has something to do with adding credentials or something.

View 2 Replies

HOW TO CHANGE THE CODING FOR URL OF Http:// TO Https://

Jan 25, 2010

IN MY PROGRAM IN V.B. NET THERE IS CODING FOR URL [URL] MAIN PART IS ATTACHED BELOW I WANT TO CHANGE IT TO https URL as:- [URL]. WHERE SHOULD I MAKE CHANGES, 'SSL CERTIFICATION ERROR' OCCURS AT LINE "Catch ex As Exception" SHOWN BOLD AT BELOW

<summary>
''' get all Global Configuration settings
''' get all Queue from Server

[CODE]...

View 1 Replies

Httprequest :: With .NET Framework 4.0 Using HttpWebRequest[HTTPS(SSL)]?

Aug 7, 2011

I have tryied a lot of methods and it seems doesn't work,i don't konw how to handle this,this is my code here,any http protocol is all right,but not https.

Dim URL As String = "https://mail.qq.com/cgi-bin/loginpage"
Dim Request As HttpWebRequest = HttpWebRequest.Create(URL)
Request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14)

[code]....

View 1 Replies

Post Data In HTTPS Authorization In .NET?

Jul 4, 2010

How to post data in HTTPS authorization in .NET?How to get headers(cookies), get html code and set headers(cookies) in HTTPS?

This is code return HTML code (GET metod):

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim strRemoteHost As String
Dim strURLPath As String
Dim RemotePort As Integer

[code]....

View 2 Replies

Redirect From Http To Https In Intranet?

Feb 22, 2010

I have a vb.net application running as intranet on Win Server 2003. So should I use HTTPS instead of HTTP?

What is the difference or why should I if the answer is HTTPS? Is there any code in VB to redirect from HTTP to HTTPS?

View 1 Replies

VB HTTPS Post Tab Delimited File

Mar 14, 2012

I need to post a tab delimited file via the https post request. I need to be able to do this in asp.net VB. I have found various methods in C# however as I am still rather new to asp.net VB I certainly do not have the ability to translate the C# version. The link it posts to is password and username protected. I need to post the file in the message body. Below is an example request that it needs to produce: [Code]

View 1 Replies

VS2010 Web Browser Won't Navigate To Https?

Jan 3, 2012

I get some errors when I'm trying to navigate to a website that's https, what am I doing wrong? See attached photo for more details.

View 1 Replies

WsHTTPBinding Over HTTPS Causes Error 400 'Bad Request'

Apr 13, 2012

I've been trying to create a simple service to allow messages to be logged onto a remote server via WCF, which all worked fine until I published the service to the live environment, which uses HTTPS.

After some searching, I found that I needed to change my ServiceConfig to account for the different protocol. I used a combination of these two articles:

How to configure WCF services to work through HTTPS without HTTP binding? WCF Bindings needed for HTTPS

Having made the recommended changes to my config, I seem to be in a state where I can add the live service as a WCF reference in VS2010, but when I use IE to browse to the service or the mex address, I'm consistently receiving an 'HTTP 400 Bad Request' error.

In terms of using the service I can seem to run it successfully but the mex just doesn't want to work through IE.

The Service itself is being hosted on Windows Server 2003 R2 Standard Edition SP2 Running IIS 6.0 with no load balancing.

I'm really at a loss at this point, I've spent 3-4 days messing around with this but I can't seem to make any progress.

See below the Server service config in question:

<system.serviceModel>
<services>
<service name="mycorp.Callback.SecPayService"

[Code].....

View 1 Replies

How To Get HTML Of Certain Sites

Oct 26, 2011

Sometimes, there are some text in a website which isn't in the html, meaning I can't retrieve it using a get webrequest. For example, in facebook, the list of friends in the 'stalker bar' isn't in the html. Is it possible to get this list of friends?

View 2 Replies

Useful Sites For .NET Programmers?

Feb 3, 2010

Lately I've had to do a bit of programming in VB .NET. It hasn't been too difficult, but the lack of proper documentation or good tutorials has been annoying me. I'm used to finding a lot of relevant info when I google a programming question, or term, or method name - but it's been more difficult with VB .NET. Anyone know of any good tutorial/documentation sites for VB .NET?

View 3 Replies

Access HTTPS Site Through Proxy Server?

Apr 15, 2009

I am adding code to use a proxy server to access the Internet.The code works fine when requesting a file from a normal (HTTP) location, but does not work when accessing a secure location (HTTPS).[code]...

View 1 Replies

Asp.net - Anonymous Authentication In IIS Over Https Does Not Fire A Postback?

Jan 2, 2012

I recently decided to change from using Windows Authentication for my internal web applications to Forms Authentication. I've not used the latter very much and one site explained you have to enable both Forms and Anonymous for this to work. The idea is to verify user passwords against an active directory then grant them access accordingly. I had this working just fine locally and when publishing to IIS 7.5 it still worked. It was just a basic Visual Studio project that would redirect to our homepage.

The problems arose when I tried accessing this same project securely with https, I included the full domain and it would load the new login page but when I clicked login it would do nothing. Since then I've scoured the web and found numerous mentions of this and that and tried many of them to no avail.

It was only later I created a blank project with a single button and one line of the code on the page to see if a post back had fired. After publishing I only enabled Anonymous Authentication in IIS and browsing to this basic test app using http when you clicked the button, false on the page changed to true - indicating a post back. Yet with https it just remains false. I think this may be why the active directory login wasn't working as it too had Anonymous enabled.

I'm still pretty new at the secure side of things but with the details passing over I have to use a secure connection just for the login then it can redirect to the usual applications we use internally.

View 1 Replies

ConsoleApp For Uploading A TextFile With An Https Post?

Mar 29, 2009

i wrote a ConsoleApp for uploading a TextFile with an https post. But it dont work.i use a Certificate and Credentials

Imports System.IO
Imports System.Net
Imports System.Security.Cryptography.X509Certificates[code].....

View 1 Replies

Display HTTP Image In HTTPS Site?

May 24, 2012

I have a https site where i have to display images from a http source. To enable this i want to make a proxy, so i can display the image as:

src="https://mydomain/showimage.aspx?url=http://externalserver/image.jpg"

I can do this in Java, somthing like this:

Code:
InputStream in = new WebInputStream( url );
BrowserOutStream out = new BrowserOutStream();
while(in.read()){ out.write() };
in.close();
out.close();

Simple enough (although the code is simplified here). But i cant seem to find a proper example of the equivalent in vb .net. I am assuming i have to use System.Net.WebClient.OpenRead, but not sure where to go from there.

View 1 Replies

Loading A XML From A HttpS Address If Server Is Offline?

Jul 22, 2010

I am using this code to get a XML file from a http or https server:

Public Function GetPageAsXML(ByVal address As String) As XmlDocument 'String
Try
Dim doc As XmlDocument

[Code].....

View 3 Replies

Method Of Logging In To HttpS Website Using Httpwebrequest?

Nov 6, 2010

Is the method of logging in to a httpS website using httpwebrequest same as that of the http website?

View 1 Replies

VS 2008 - Any Way To Create WebBrowser Which Use HTTPS Automatically?

Oct 26, 2010

Is it possible to create a web browser which auto use the https:// instead of the http://. For example: I open a facebook and the web is auto using the http://,, is it possible that the browser forced every action in the browser auto add the https://

View 1 Replies

Blocking Web Sites In Browser?

Oct 10, 2009

I am creating a security program. One of its features is that it blocks inappropriate web sites. I might need help determining which sites are bad and which ones are good. If I could 'read' every work that is displayed in the browser then I could tell, but that may come later.

So, I'm looking for some kind of hook that will allow me to cancel the site if needed. It should be able to still be hooked in Safe Mode, as well... I'm sure that this is going to be an easy one!

View 7 Replies

Converting One Of Sites From Expression Over To VS?

Jan 24, 2011

Situation: Trying to learn Visual Studio and VB. I have been using Expression web to build web sites for several years. But not alot of programing within them.I have started a project using Visual Studio 2010 Pro and am working in VB. I am converting one of my sites from Expression over to VS and want to start using the Code Behind model for all of my web sites on this one and all future sites. I have a simple form that works on my old site but in the new site the I have no idea as to how to set up the Namespace's (System.Text and System.Net.Mail). Does it go on the page with the form or on the VB page? If someone has a good example of how to set up a form for emailing the results I would really appriciate looking at a copy of it.I use VB as I am the most familiar with it. I have no experience yet with Java or PHP.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved