[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
https request - the first time
hi @ll,
it is the first time for me programming a http respectively a https request
and it's very difficult for me to understand this process, because I never
used prototype, procedures etc.
I hope I find some (more) help at this board.
Is it necessary to make an init before https request? In EXAMPLE3 I found
the comment "Before you can use the https (http over SSL) stuff, you must
call https_init() to initialize the SSL APIs." and in EXAMPLE4 the comment
is: "The only diff between using HTTPS and using HTTP is the URL that we
pass. It starts with 'https://'"
What should I believe in?
My client want to have a https request an like this:
POST capture.html HTTP/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: 175
Service=ES0012&PartnerNo=12345&PartnerCode=geheim&SessionId=9876543210&
LastName=Barton&FirstName=Dolly&Street=Landgrabenweg+151&Country=D&
ZIP=53227&City=Bonn&RequestReason=ABK
I give the request in this form:
callp http_xlate( %len(W#request)
: W#request
: TO_ASCII )
eval rc = http_url_post(
'https://' + %trim(W#ip_adresse) + ':' +
%trim(W#ip_port)
: %addr(W#request)
: P#datasize
: '/tmp/' + 'BO' + %char(#Qjobnummer)
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'application/x-www-form-urlencoded' )
The result is no feedback - only return code 0 - "CommSSL_Read: time-out"
Protocol Used: TLS Version 1
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST / HTTP/1.1
Host: 193.101.24.30:2443
User-Agent: http-api/1.23
Content-Type: application/x-www-form-urlencoded
Expect: 100-continue
Content-Length: 343
recvresp(): entered
SetError() #43: CommSSL_Read: time-outÜ
senddoc(): entered
&!ëè€[/øÈÍÊÁ ÇÈ_%€çèè&' Ž{?>ÈÁ>È è`øÁš€/øø%Ñ[/ÈÑ?>Ì ÏÏÏ Ã?Ê_ ÍÊ%Á>[?ÀÁÀ
Ž{?>ÈÁ>È <Á>ÅÈÇš€ "" Ž ŽëÁÊÎÑ[Á áë' &/ÊÈ>ÁÊ+? -™™™™ &/ÊÈ>ÁÊ{?ÀÁ -™™™™-
èÑÈ%Á </ËÈ+/_Á (]%%ÁÊ <]ÀÁ>Ë[ÇÁÑÀ ãÑÊËÈ+/_Á ç/>Ë çÁÑ>: à/ÈÁ!ÃâÑÊÈÇ '™
o'™-' ëÈÊÁÁÈ _€,ÊÍ__Á>€èÑ_øÁ> ç?ÍËÁ ' ""o {?Í>ÈÊ` à Üñ& ' ""o {ÑÈ`
&ÍËËÁ_Í[,Á% êÁÉÍÁËÈêÁ/Ë?> âî êÁÉÍÁËÈÁë[?ÊÁî/%ÍÁ +
recvresp(): entered
SetError() #43: CommSSL_Read: time-outÜ
http_close(): entered
Perhaps someone find a way for my.
Thx for feedback
Wolfgang
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------