[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: https request - the first time



   The only difference in the URL is that the protocol is https rather
   than http. Yes, you must do the https_init call. Both statements are
   correct.

   On Thu, Jun 11, 2009 at 7:15 AM,
   <[1]wolfgang.tigges.extern@xxxxxxxxxxx> wrote:

     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=9876543
     210&
     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: [2]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:
     [3]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----

References

   1. mailto:wolfgang.tigges.extern@xxxxxxxxxxx
   2. http://193.101.24.30:2443/
   3. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------