I have this Spring Controller:

```
@RequestMapping(value = "/create")
@ResponseBody
public ResponseEntity<?> create(
    @RequestParam String name,
    @RequestParam Integer startYear,
    @RequestParam Integer endYear,
    @RequestParam(required=false) MultipartFile polygons,
    @RequestParam(required=false) Long reference
) 

```

Is it possible to send those parameters from Angular via POST request?

I am trying this:

```
public createExperiment(): Observable<any> {
    const headers = new HttpHeaders({'Content-Type': 'application/json'});
    return this.http.post(this.backUrl + 'puerto/create', {name:'name'}, {headers: headers})
      .map((res: any) =>
        res
      );
  }

```

But I already receive this error:

> 
> error
>  :
>  {timestamp: 1527665099011, status: 400, error: "Bad Request", exception: "org.springframework.web.bind.MissingServletRequestParameterException", message: "Required String parameter 'name' is not present", …}
> 
> 
> 

Why I get this error? and if I fix that, can I then send the MultiPartFile too?

I know I can fix this changing the controller and receiving the params via ResquestBody, but I would like to send the parameters separetely.