URLEncoder. Querystring option.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

URLEncoder. Querystring option.

Post by Hroudtwolf »

Hi,

My little wish is, to have an option for encoding querystrings with URLEncoder.

In example:

Code: Select all

Debug URLEncoder ( "Hello Fred, I've a little wish. #PB_Encoder_QueryString" )
; Hello+Fred,+I've+a+little+wish.+%23PB_Encoder_QueryString
Debug URLEncoder ( "Hello Fred, I've a little wish. #PB_Encoder_QueryString"  , #PB_Encoder_QueryString )
; Hello+Fred,+I've+a+little+wish.+%23PB_Encoder_QueryString
Would be more comfortable than...

Code: Select all

Debug ReplaceString ( URLEncoder ( "Hello Fred, I've a little wish. #PB_Encoder_QueryString" ) , "%20" , "+" )
Best regards

Wolf