You need to sign in to do that
Don't have an account?
![Diwakar G 7 Diwakar G 7](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Read timed out - Error
Hi,
When I clicked on submit button in visualforce (VF) page it will call the below savePro() function. In the function, I am making post request and returning VF page.
![User-added image](/forums/servlet/rtaImage?eid=9062I000000g7VK&feoid=Body&refid=0EM2I000000gBji)
Thanks and Regards,
Diwakar G
When I clicked on submit button in visualforce (VF) page it will call the below savePro() function. In the function, I am making post request and returning VF page.
public pagereference savePro(){ PageReference myVFPage = new PageReference('/apex/Successpage'); String jsonData = '[{"name":"'+UserInfo.getUserName()+'"},{"email":"'+UserInfo.getUserEmail()+'"},{"userstory":"'+selected_user_list+'"}']'; myVFPage.setRedirect(true); String endpoint = 'https://********************'; HttpRequest req = new HttpRequest(); req.setEndpoint(endpoint); req.setHeader('Accept', 'application/json'); req.setMethod('POST'); req.setbody(jsonData); Http http = new Http(); http.send(req); return myVFPage; }But, I am getting the below error.
Thanks and Regards,
Diwakar G