Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Need help with a Get HttpRequest (1 reply)

$
0
0
Hello All,

First time trying to call a rest request. I tries code below and got a timed out error.

I have the URL
2 Headers need to be sent
Parameter needs to be sent

I have no Idea how to do this so this is my first attempt


first header - Accept: application/json
second header - Authorization: Basic 1233blahblahblah2333333122222=="
Parameter - LoadNumber: 3986552

sUrl is string = "[blahblahblah&quot];



IF HTTPRequest(sUrl,"","Accept: application/json" +CR+ "Authorization: Basic 1233blahblahblah2333333122222==") THEN
	
	Info("It worked")
	EDT_Result = HTTPGetResult()
ELSE
	Info("Error")
END

Not sure how to format the request. I did test it with a Rest Request test tool and it worked I just need to know how to call it from WIndev

DW

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>