send a json with webrequest - page 2

 
Dominik Egert #:
Btw, your URL is not proper encoded.
Ever heard the term Base 64?

Developers have developed this "should be".

Technically you could also have a logistics company with Ferraris...

GET statements are bound to be cached, but why should I discuss this.

You asked, I answered.

Do as you like, I don't care...

Base 64 , yes it could be done.

Further more i told about 2 functions json encode and url encode they can also solve issue with simplicity.

Yes plenty of options available. 

I don't understand that part of  "i don't care"  i thought we were simply trying to help a person.

 
Well, you asked kindly for a rule, I answered exactly that.

I personally think, it is important to keep as close as possible to best practices...

Although you asked and I answered, you stated it is possible...

Yes, it is possible. But it's outside the specs.

So, I said, do as you like. Because I don't care on how you do it.

You will be stuck with ambiguous errors, almost impossible to debug. Especially when I think of your feature announcement, having a trade copy product being able to communicate over the internet...

I suppose, it will be using some type of webrequests. Using GET, an unknown transfere path and data, that should not be cached, will give you a low quality product. (Even if you set the "no-cache" flag.


 
Farrukh Aleem #:

create a proper url encoded string like

and just append it to a variable in url. 

you can use json encode and url encode functions too if they are available to you.

Farrukh Aleem #:

create a proper url encoded string like

and just append it to a variable in url. 

you can use json encode and url encode functions too if they are available to you.

"
string strJsonText = "{\r\n\"key\": \"value\"\r\n}";
"Amazing!,thank you for your help,solve my problem.buy if I want to add a Array inside,how could I do ? THX         [   ]