Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HTTP Authentication and XML
Message
De
05/05/2008 10:53:40
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01314247
Message ID:
01315116
Vues:
36
This is a bit new to me, but this is part of what they said:

"I don’t think you actually send the userid and password. You need to set up “HTTP Basic Authentication”. It’s sent as another request property; like the Content-Type."

Then this:

"Here is sample Java code that I’ve used to do this:"
String authString = id + “:” + password;
String encoding = Base64.encode(authString.getBytes());
connection.setRequestProperty(“Authorization”, “Basic “ + encoding)
>Are you sure they are using basic authentication?
>
>>Ok, that cut down the amount of code I had by a lot. Thanks for that. Of course, I still have the issue with the form popping-up.
>>
>>>BTW, VFP STRCONV(,13) function will return encoded base64 binary and STRCONV(,14) will decode it.
>>>FYI, it's Base64 encoding not encryption.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform