python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
RestTemplate vs Postman: Identical in Wireshark but only one works
I'm trying to recreate a request that works in Postman using a Spring RestTemplate. I've tried to make the requests identical, down to the fake "User-Agent" header, but for whatever reason t...
Martin01478
Votes: 0
Answers: 0
org.springframework.web.client.HttpClientErrorException$Forbidden: 403 Forbidden: [no body] GET
I have the following snippet:
String url=Config.reqHttp+"/get-products";
Reponse reponse=new Reponse();
HttpHeaders headers = new HttpHeaders();
headers.setAcce...
user3841581
Votes: 0
Answers: 1
Autowiring inside jackson serializer if used by RestTemplate
I have an @Autowired in one of my Serializers which extends StdSerializer
public class RefSerializer extends StdSerializer<LabeledElement> {
@Autowired
I18n i18n;
public RefSeriali...
chaosKP
Votes: 0
Answers: 1
Spring webclient add httpmessageconverter
I want to convert spring resttemplate to spring webclient.
in spring resttemplate we can add message converters
How can I tell RestTemplate to POST with UTF-8 encoding?
restTemplate.getMessageConverte...
Bilgehan
Votes: 0
Answers: 1