[WM] - Getting Bad Request 400 from server when trying to load an Image from server May 08, 2019 07:32AM |
Registered: 5 years ago Posts: 151 |
IF Length(NoSpace(sNewsPhoto)) > 0 THEN HTTPRequest(gsPhotoURL + sNewsPhoto) sResult is Buffer = HTTPGetResult(httpResult) IF Position(sResult,"404") THEN Error("Cannot load Image", "Resource name: " + sNewsPhoto) // or some other error handling to indicate the file was not found ELSE IF Length(sResult) > 0 THEN IMG_NewsPhoto = sResult END END END
Quote
server response
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><10><html><head><10><title>400 Bad Request</title><10></head><body><10><h1>Bad Request</h1><10><p>Your browser sent a request that this server could not understand.<br /><10></p><10><p>Additionally, a 400 Bad Request<10>error was encountered while trying to use an ErrorDocument to handle the request.</p><10></body></html><10>
stefan.kern
Re: [WM] - Getting Bad Request 400 from server when trying to load an Image from server May 09, 2019 12:32AM |
Re: [WM] - Getting Bad Request 400 from server when trying to load an Image from server May 09, 2019 03:11PM |
Registered: 4 years ago Posts: 13 |
Re: [WM] - Getting Bad Request 400 from server when trying to load an Image from server May 12, 2019 07:55AM |
Registered: 5 years ago Posts: 151 |