Home » Community » Newbie corner » print the Http Request before sending it
print the Http Request before sending it [message #50319] |
Tue, 18 September 2018 15:44  |
 |
Xemuth
Messages: 310 Registered: August 2018 Location: France
|
Senior Member |
|
|
Hello Everyone,
I'm looking for a way to show the request of HttpRequest object before Execute it.
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
HttpRequest test("http://www.holidaywebservice.com//HolidayService_v2/HolidayService2.asmx?wsdl");
test.Post("<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:hs='http://www.holidaywebservice.com/HolidayService_v2/'><soapenv:Body><hs:GetHolidaysForMonth><hs:year>2018</hs:year><hs:countryCode>UnitedStates</hs:countryCode><hs:month>11</hs:month></hs:GetHolidaysForMonth></soapenv:Body></soapenv:Envelope>");
Cout() << test.MyRequestAtString(); //Looking for something like that !
Cout() << test.Execute();
test.Close();
}
It will help me to determine why I have no response.
Thanks in advance !
my github : https://github.com/Xemuth
|
|
|
|
|
Goto Forum:
Current Time: Mon Jan 25 22:05:19 CET 2021
Total time taken to generate the page: 0.01616 seconds
|