urlPar; //-- Valid URL
Is not a valid url.
Remember you can only use post 80 for HTTP and 443 for HTTPS.
And the link has to be added to the list of allowed url's in the settings.
Is not a valid url.
Remember you can only use post 80 for HTTP and 443 for HTTPS.
And the link has to be added to the list of allowed url's in the settings.
Thanks for the reply.
I wrote in comment 'valid url' because i successfully completed the request with WebRequest function but i had to remove the line 'StringToCharArray(payload,post,0,WHOLE_ARRAY,CP_UTF8);'.
Which means that i left the char array post empty. So when i fill that array i have the 403 Forbidden error.
Thanks for the reply.
I wrote in comment 'valid url' because i successfully completed the request with WebRequest function but i had to remove the line 'StringToCharArray(payload,post,0,WHOLE_ARRAY,CP_UTF8);'.
Which means that i left the char array post empty. So when i fill that array i have the 403 Forbidden error.
Try
StringToCharArray(payload,post,0,StringLen(payload),CP_UTF8);
Try
Thank you Alain!
That was the problem.
Do you know why the change from WHOLE_ARRAY to StringLen(payload) solve that issue ?
Regards!
Thank you Alain!
That was the problem.
Do you know why the change from WHOLE_ARRAY to StringLen(payload) solve that issue ?
Regards!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I use the following code :
Last, when i leave the char array post empty then it returns 200 OK.
Any help will be appreciated!
Thanks.