Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Return codes of HTTP REQUEST DATA

Author
Message
yaten
13
Years of Service
User Offline
Joined: 12th Aug 2010
Location:
Posted: 26th Sep 2010 22:40
hi geniuses,

Good day to all. Can someone point me to any resources/documents that list all the error codes and its corresponding meaning for the DBP command 'HTTP REQUEST DATA'.

Example, i'm testing something and i am receiving an error message:
Send Request failed. Error Code:12045
I tried to search for that error code but I don't find any document that explains what that code is.

I also saw a post on this forum regarding an error code 12005 but the code isn't explained well, except for guessing that the hostname is invalid. Therefore, if someone would post a document that list the codes and the corresponding meaning to it, it will be very useful to all those who would use the HTTP REQUEST DATA command.

Thanks to all!

Best regards,
yaten ^_^

---
http://www.yaten.me
yaten
13
Years of Service
User Offline
Joined: 12th Aug 2010
Location:
Posted: 29th Sep 2010 19:45
For those who might need the list, here it is:
http://msdn.microsoft.com/en-us/library/aa385465%28v=VS.85%29.aspx

Thanks to TGC support for pointing me to that url ^_^

Most notable of the error codes are:
ERROR_INTERNET_INVALID_URL
12005
The URL is invalid.

I encountered that error when I did this:
http connect "http://www.domain.tld"
instead of doing this
http connect "www.domain.tld"


ERROR_INTERNET_INVALID_CA
12045
The function is unfamiliar with the Certificate Authority that generated the server's certificate.

I encountered that error when i tried to connect securely to a website that uses self-signed certificate which is normally considered as invalid by the browser.

I hope those who encounter those error can benefit from this post.

---
http://www.yaten.me

Login to post a reply

Server time is: 2024-07-23 07:51:48
Your offset time is: 2024-07-23 07:51:48