Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to authenticate via HTTPS in code
Message
De
21/07/2003 17:17:25
 
 
À
19/07/2003 15:49:33
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00811695
Message ID:
00812162
Vues:
14
(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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform