Alaska Software Inc. - problem sending a message to a http server using xb2net
Username: Password:
AuthorTopic: problem sending a message to a http server using xb2net
Nestor G. Torresproblem sending a message to a http server using xb2net
on Sun, 23 Jan 2011 17:09:26 +0200
Hi all,

I am having a problem sending a message to a http server using xb2net...Any 
possible help will greatly be appreciated.

Kind regards,
Nestor

oHttp := xbHTTPClient():new()
oResult 
:=oHttp:Execute("http://www.smss.co.za/API/send_sms.php?user=xxxxxx&pass=xxxxxxxx&sender=Blockbuster&GSM=27832620886&SMSText=hello 
world")

When when viewed through a http viewer we see that the 'hello world' is 
stripped of its middle blank character.
can this be rectified?
Pablo BotellaRe: problem sending a message to a http server using xb2net
on Sun, 23 Jan 2011 16:35:32 +0100
Hi Nestor,

> When when viewed through a http viewer we see that the 'hello world' is 
> stripped of its middle blank character.
You must encode strings inside the url.
http://www.smss.co.za/API/send_sms.php?user=xxxxxx&pass=xxxxxxxx&sender=Blockbuster&GSM=27832620886&SMSText=hello+world
or
http://www.smss.co.za/API/send_sms.php?user=xxxxxx&pass=xxxxxxxx&sender=Blockbuster&GSM=27832620886&SMSText=hello%20world

Regards,
Pablo Botella
Nestor G. TorresRe: problem sending a message to a http server using xb2net
on Sun, 23 Jan 2011 19:08:17 +0200
Hi Pablo,

You know your stuff.

You are a life saver.....It worked!

Kind Regards,
Nestor

"Pablo Botella" <pb_no_spam_@_remove_all_betwen_underscores_xbwin.com> wrote 
in message news:37b0c633$1e5a3229$292@news.alaska-software.com...
> Hi Nestor,
>
>> When when viewed through a http viewer we see that the 'hello world' is
>> stripped of its middle blank character.
> You must encode strings inside the url.
> http://www.smss.co.za/API/send_sms.php?user=xxxxxx&pass=xxxxxxxx&sender=Blockbuster&GSM=27832620886&SMSText=hello+world
> or
> http://www.smss.co.za/API/send_sms.php?user=xxxxxx&pass=xxxxxxxx&sender=Blockbuster&GSM=27832620886&SMSText=hello%20world
>
> Regards,
> Pablo Botella
Pablo BotellaRe: problem sending a message to a http server using xb2net
on Sun, 23 Jan 2011 22:24:45 +0100
>It worked!
yep 

Have just remebered that xb2net have a function xbEscape(cStr) that encode values to be provided inside an url query

Regards,
Pablo
Rudolf ReinthalerRe: problem sending a message to a http server using xb2net
on Mon, 24 Jan 2011 08:43:32 +0100
Hello Nestor,
tryp to escape the string, XB2NET has this functio: xbEscape( 
cString,[cAllowed] ) -> cEscapedString
regards
Rudolf


Am 23.01.2011 16:09, schrieb Nestor G. Torres:
> Hi all,
>
> I am having a problem sending a message to a http server using
> xb2net...Any possible help will greatly be appreciated.
>
> Kind regards,
> Nestor
>
> oHttp := xbHTTPClient():new()
> oResult
> :=oHttp:Execute("http://www.smss.co.za/API/send_sms.php?user=xxxxxx&pass=xxxxxxxx&sender=Blockbuster&GSM=27832620886&SMSText=hello
> world")
>
> When when viewed through a http viewer we see that the 'hello world' is
> stripped of its middle blank character.
> can this be rectified?
>
Nestor G. TorresRe: problem sending a message to a http server using xb2net
on Mon, 24 Jan 2011 14:44:36 +0200
Hi Rudolf,

Everyday I learn something new....Thank you,  to you and Pablo...

Kind regards,
Nestor


"Rudolf Reinthaler" wrote in message 
news:5843e867$33ab506b$80a0@news.alaska-software.com...
> Hello Nestor,
> tryp to escape the string, XB2NET has this functio: xbEscape( 
> cString,[cAllowed] ) -> cEscapedString
> regards
> Rudolf
>
>
> Am 23.01.2011 16:09, schrieb Nestor G. Torres:
>> Hi all,
>>
>> I am having a problem sending a message to a http server using
>> xb2net...Any possible help will greatly be appreciated.
>>
>> Kind regards,
>> Nestor
>>
>> oHttp := xbHTTPClient():new()
>> oResult
>> :=oHttp:Execute("http://www.smss.co.za/API/send_sms.php?user=xxxxxx&pass=xxxxxxxx&sender=Blockbuster&GSM=27832620886&SMSText=hello
>> world")
>>
>> When when viewed through a http viewer we see that the 'hello world' is
>> stripped of its middle blank character.
>> can this be rectified?
>>
>