Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to authenticate via HTTPS in code
Message
From
21/07/2003 17:17:25
 
 
To
19/07/2003 15:49:33
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00811695
Message ID:
00812162
Views:
12
(Much Later)
Unfortunately, this solution doesn't solve my problem. What I need to do is emulate an HTTP POST as if I were clicking a button on a web page (tags broken on purpose):

< htm >
< bdy >
< frm act'n="https://www.somesecuresite.com/somescript"
mthd="post" enctype="multipart/form-data" >
login: < inp't typ="text" val="username" nam="login" >< br >< br >
password: < inp't typ="text" val="topsecret" nam="password" >< br >< br >
file to post: < inp't typ="file" nam="uploadfile" >< br >< br >
< inp't typ="submit" val="Click to send!" >
< /frm >
< /bdy >
< /htm >

with all the MIME boundries and whatnot. I've seen this done with the WestWind tools for VFP. Is there a native VB way to do this or can it be emulated?

Again, thanks in advance.
Paul


>Thanks for the response Keith. There are no client-side certificates involved here. I thought I was passing my credentials via the StreamWriter (some context-sensitive code had to be snipped in my example, but the "login=abc" was still there), but I take it they have to be passed by the WebRequest object rather than manually.
>
>Thanks again for the help. I can't wait to try it out.
>
>>Depending on the service provider, you will have to use your network credentials or a client certificate to connect to the resource. For network credentials, add webReq.Credentials = System.Net.CredentialCache.DefaultCredentials to the other statements that are setting the properties of the HttpWebRequest.
Paul M.
MCSE/MCSA/MCT/MCP+I, A+, Network+, I-Net+
Nil carborundum illegitimi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform