Skip to content Skip to sidebar Skip to footer

Angular 4: Saving Variable From The Table Element Through Post Service

I am new to Angular and I need help in saving the value from a table through a POST service. Below is my code. saveCalendar(value: any) { console.log('Updated Value'+ value); //

Solution 1:

I found this bit, I have limited experiemce with python? Hopefully this works: def do_POST(self): # Doesn't do anything with posted data content_length = int(self.headers['Content-Length']) # <--- Gets the size of data post_data = self.rfile.read(content_length) # <--- Gets the data itself self._set_headers() self.wfile.write("

POST!

") Is the above everything you are using to catch the Post request?

403 is a forbidden error, indicating you either have no index.html or no permission to access the webserver.

Is your webserver local? In postman are you using the right address, ie could it be you use the wrong port? What port is you server listening to and are you using that port?

Post a Comment for "Angular 4: Saving Variable From The Table Element Through Post Service"