Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for freee and fast URLDecode function
Message
De
22/04/2002 15:45:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00646395
Message ID:
00647815
Vues:
24
David, thank you for assistance.

The big data is typically a XML string sent as POST request from IE 6.
The following characters get encoded most ofter but there may be others:

< > õäöüÕÄÖÜ

It may be possible to pack this data in IE before sending or force IE to encode data in other way (VFP 7 has build in base64 decoding, fox example)
but I have no idea for this.

I packed webserver logfile to www.eetasoft.ee/logifail.zip (80 KB)

The data need to be decoded is contained in selgitus field.
There are HeaderData and RowData POST keys containing XML data to de decoded.


>Andrus,
>
>You probably still want to do a $ test so that you can get an early exit out of that loop, unless the strings you are decoding have a high incidence of every possible character in them. You might also want to do some analysis and check the frequency of occurance of each escaped character on average and use an array to store the order that would optimize the code a lot.
>
>If you want zip up a couple of these huge url strings and email them to me I'll take a look and see if there's anything else that would help. I might even crank up the VC++ compiler and do this the right way *bg*.
>
>>Sorry, I dont have C compiler and experiences to work with it.
>>
>>
>>Maybe this vfp program is faster than previous code:
>>
>>
>>for i=0 to 255
>>  cRes = strtran( cRes, '%'+left( TRANSFORM(i,'@0'),2), chr(i) )
>>  endfor
>>
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform