B bluedude Well-Known Member Licensed User Longtime User Jul 1, 2014 #1 Hi, I always get bad requests if I call httputils a second time. In my code I do this: httpRTB.Initialize("rtb", Me) httpRTB.PostString("http://api.removethebackground.com/REST.svc/Image/", jsonData) httpRTB.GetRequest.SetContentType ("application/json") So basically i'm sending a json payload to a webservice. First time it succeeds but second time always ends with a Bad Request while I know the webservice is up and operational. Any suggestions?
Hi, I always get bad requests if I call httputils a second time. In my code I do this: httpRTB.Initialize("rtb", Me) httpRTB.PostString("http://api.removethebackground.com/REST.svc/Image/", jsonData) httpRTB.GetRequest.SetContentType ("application/json") So basically i'm sending a json payload to a webservice. First time it succeeds but second time always ends with a Bad Request while I know the webservice is up and operational. Any suggestions?
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2014 #2 This is most probably not a bug. HttpUtils2 is used in many many projects. Please start a new thread in the questions forum.
This is most probably not a bug. HttpUtils2 is used in many many projects. Please start a new thread in the questions forum.
B bluedude Well-Known Member Licensed User Longtime User Jul 1, 2014 #3 Do I need to call .release before calling below procedure again: httpRTB.Initialize("rtb", Me) httpRTB.PostString("http://api.removethebackground.com/REST.svc/Image/", jsonData) httpRTB.GetRequest.SetContentType ("application/json")
Do I need to call .release before calling below procedure again: httpRTB.Initialize("rtb", Me) httpRTB.PostString("http://api.removethebackground.com/REST.svc/Image/", jsonData) httpRTB.GetRequest.SetContentType ("application/json")
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2014 #4 Please start a new thread in the questions forum.