Search results

  1. N

    json encode, for http post and otherwise

    This started out as fiddling with getting newlines encoded for a HTTP POST, but it turns out that's not solving the issue. As soon as other things that json needs escaped wind up in your request, it's borked all over again. A solution would be: have a checkbox that allows input data to a POST...
  2. N

    Sending \n in POST request

    I'm having trouble sending properly formatted json string containing multiple lines inside a var, in a HTTP POST. The responses from the server have no trouble encoding newlines as '\n', and that shows up in resulting var...no matter what way I try to sneak them in (multiple escapes, etc) the...
Top