Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
URL Encode API
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00878743
Message ID:
00878755
Views:
24
>Is the an API call hiding somewhere that I can use to URL encode an argument string to send to a web page?
>
>? f( "test this?" ) && would return test%20this%3F
>
>I know that something like this has to exist because if you look at the LocationURL inside an IE object it comes back encoded. The problem is I can't actually call the Navigate() method until the arglist has been encoded.
>
>I'm looking for an API because it's got to be at least an order of magnitude faster than VFP code could do it.

df,

I don't think that there is one. The closest thing I've found is the HttpUtility.UrlPathEncode Method in the .NET framework (v. 1.1). Given the overhead involved with creating something that could be invoked by VFP, it's probably best that you "roll your own."
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform