Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTTP Authentication and XML
Message
From
05/05/2008 10:53:40
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01314247
Message ID:
01315116
Views:
34
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform