PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Bug in HTTP Request v20
Bug in HTTP Request v20
Iniciado por Tony Turner, 20,feb. 2015 10:48 - 2 respuestas
Publicado el 20,febrero 2015 - 10:48
Hi

Is there a bug in Webdev v20 HTTP Request.

Webdev v19 and Windev 19/20 it works not v20 Webdev

HTTP request fine if http not https:

Ignore I am sending data to my site, normally I send to payment provider Barclays, if you set URL to HTTPS: it breaks and doesn't send. I wireshark the HTTP and its fine, wireshark the HTTPS never gets out of Webdev 20.

// works HTTP
sData is string = "test=john"
sResStart is string = HTTPRequête("http://www.nodemax.com/index.awp?"+sData, "", "", "POST", "", "Julie", "MotDePasse")
Info(HTTPGetResult())
Info(ErrorInfo())

// breaks as HTTPS
sData is string = "test=john"
sResStart is string = HTTPRequête("https://www.nodemax.com/index.awp?"+sData, "", "", "POST", "", "Julie", "MotDePasse")
Info(HTTPGetResult())
Info(ErrorInfo())


// works as HTTP
sData is string = "AMOUNT=100&BRAND=VISA&CARDNO=4111111111111111&CN=REPLACED&CURRENCY=GBP&CVC=123&ED=0915&FLAG3D=N&LANGUAGE=en_GB&ORDERID=HL79&PARAMPLUS=79&PSPID=REPLACED&PSWD=REPLACED&USERID=REPLACED&SHASIGN=2F5309FC97DF131447208A71A89CCE16F3F91385"
sResStart is string = HTTPRequête("http://www.nodemax.com/index.awp", "", "", sData, "", "Julie", "MotDePasse")
Info(HTTPGetResult())
Info(ErrorInfo())

// breaks HTTPS
sData is string = "AMOUNT=100&BRAND=VISA&CARDNO=4111111111111111&CN=REPLACED&CURRENCY=GBP&CVC=123&ED=0915&FLAG3D=N&LANGUAGE=en_GB&ORDERID=HL79&PARAMPLUS=79&PSPID=REPLACED&PSWD=REPLACED&USERID=REPLACED&SHASIGN=2F5309FC97DF131447208A71A89CCE16F3F91385"
sResStart is string = HTTPRequête("https://www.nodemax.com/index.awp", "", "", sData, "", "Julie", "MotDePasse")
Info(HTTPGetResult())
Info(ErrorInfo())

// breaks HTTPS to Barclays

sData is string = "AMOUNT=100&BRAND=VISA&CARDNO=4111111111111111&CN=REPLACED&CURRENCY=GBP&CVC=123&ED=0915&FLAG3D=N&LANGUAGE=en_GB&ORDERID=HL79&PARAMPLUS=79&PSPID=REPLACED&PSWD=REPLACED&USERID=REPLACED&SHASIGN=2F5309FC97DF131447208A71A89CCE16F3F91385"
sResStart is string = HTTPRequête("https://mdepayments.epdq.co.uk/ncol/test/orderdirect.asp","",sData, "", "Julie", "MotDePasse")
Info(HTTPGetResult())
Info(ErrorInfo())


Now HTTPS works fine windev 20 and webdev 19.

So what's the difference in Webdev 20 or have I made a mistake.

Thanks

Tony
Publicado el 21,febrero 2015 - 00:36
Tony,

This may not be anything to do with Webdev. Your payment provider (Like loads of others...) are killing off access from sites secured with less than TLS1. (Sagepay and Paypal did it to me within two days of each other this week - nightmare!!!)

Might want to just check with Barclays to see if its a security issue rather than Webdev

Cheers

Bosher
Publicado el 21,febrero 2015 - 14:19
Hi Bosher

Thank you for your reply.

Yes Barclay's does only allow TLS1, however I am not sure they are the problem.

I just tested this in Windev 20 and it works against my site TLS1.2

sData is string = "AMOUNT=100&BRAND=VISA&CARDNO=4111111111111111&CN=REPLACED&CURRENCY=GBP&CVC=123&ED=0915&FLAG3D=N&LANGUAGE=en_GB&ORDERID=HL79&PARAMPLUS=79&PSPID=REPLACED&PSWD=REPLACED&USERID=REPLACED&SHASIGN=2F5309FC97DF131447208A71A89CCE16F3F91385"
sResStart is string = HTTPRequête("https://www.nodemax.com/index.awp", "", "", URLEncode(sData), "", "Julie", "MotDePasse")
Info(HTTPGetResult())
Info(ErrorInfo())

Now I can see it using TLS1.2 as I wiresharked it. (ignore whether 1.2 is safe, I am just interested in Webdev HTTP REQUEST)

Now do the same in Webdev 20

I get this.

Erreur détectée :
Une erreur système a été détectée pendant l'envoi de la requête HTTP.

If I wireshark it I see no packets going to the webserver.

So to me there is a difference in Windev 20 and Webdev 20 on HTTP REQUEST and I don't like differences always causes me pain.

100% PCSoft know why, I am hoping they let me know :)

Fabrice I bet you know why ? what am I doing wrong ?

Anyone any ideas?

regards

Tony