[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: httpapi Beta 1.24
Hello,
It's sending you a 302 which means that it wants you to navigate to
another location.
The http_redir_loc() routine will return the URL of the new location
(from the log I can see that it's
https://collaudowb.hbl.local/pkmscertpromptstagen)
So call http_redir_loc() to get the URL, then use http_get() to access
that location.
Good luck
On 4/4/2011 4:53 AM, Giancarlo De Filippis wrote:
>
> Hy all.....
>
> i've this problem (my log)
>
> HTTPAPI Ver 1.24beta11 released 2010-09-09
> OS/400 Ver V6R1M0
> https_init(): entered
> ----------------------------------------------------------------------
> ---------------
> Dump of local-side certificate information:
> ----------------------------------------------------------------------
> ---------------
> -----BEGIN CERTIFICATE-----
> -----END CERTIFICATE-----
> Serial Number: 01
> Common Name: user collaudo
> Country: it
> Org Unit: hbl
> Org: webservices
> Issuer CN: collaudowb
> Issuer Country: IT
> Issuer State/Province: Perak
> Issuer Locality: Sitiawan
> Issuer Org: HBL
> Issuer Org Unit: webservices
> Version: 03
> not before: 20080408141514
> not after: 20120103131514
> pub key alg: 1.2.840.113549.1.1.4
> http_url_post(): entered
> http_persist_open(): entered
> http_long_ParseURL(): entered
> DNS resolver retrans: 2
> DNS resolver retry : 2
> DNS resolver options: x'00000136'
> DNS default domain: UCS.CED.LAN
> DNS server found: 10.176.16.13
> DNS server found: 10.176.16.14
> DNS server found: 10.176.16.15
> ----------------------------------------------------------------------
> ---------------
> Dump of server-side certificate information:
> ----------------------------------------------------------------------
> ---------------
> Cert Validation Code = 6000
> -----BEGIN CERTIFICATE-----
> -----END CERTIFICATE-----
> Serial Number: 45:F5:3B:C6
> Common Name: collaudowb.hbl.local
> Country: IT
> Issuer CN: collaudowb.hbl.local
> Issuer Country: IT
> Version: 03
> not before: 20070311123846
> not after: 20170309123846
> pub key alg: 1.2.840.113549.1.1.4
> Protocol Used: TLS Version 1
> http_persist_post(): entered
> http_long_ParseURL(): entered
> do_oper(POST): entered
> POST /pkmslogin.form HTTP/1.1
> Host: collaudowb.hbl.local
> User-Agent: http-api/1.24
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 20
> Cookie: $Version=0;
> PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS;
> $Path=/;
> senddoc(): entered
> login-form-type=cert
> recvresp(): entered
> HTTP/1.1 302 Moved Temporarily
> connection: close
> content-length: 1157
> content-type: text/html
> date: Mon, 04 Apr 2011 09:50:55 GMT
> location: https://collaudowb.hbl.local/pkmscertpromptstagen
> p3p: CP="NON CUR OTPi OUR NOR UNI"
> server: WebSEAL/6.1.1.1 (Build 110214)
> cache-control: no-cache
> pragma: no-cache
> Set-Cookie:
> PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS;
> Path=/
> SetError() �13: HTTP/1.1 302 Moved Temporarily
> recvresp(): end with 302
> recvdoc parms: identity 1157
> header_load_cookies() entered
> cookie_read() entered.
> read cookies in /tmp/cookies.txt
> cookie_parse() entered
> cookie =
> PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS;
> Path=/
> cookie attr
> PD-H-SESSION-ID=4_0_lGI4o5ut4y2G9uq5jRxH6dBtQUP+6IqnMbfHwZuEIzZSWYnS
> cookie attr Path=/
> cookie_dump() entered.
> cookie file is /tmp/cookies.txt
> recvdoc(): entered
> SetError() �0:
> (GSKit) I/O: Descrittore non valido.
> ssl_error(406): (GSKit) I/O: Descrittore non valido.
> SetError() �44: CommSSL_read: read:(GSKit) I/O: Descrittore non
> valido.
> http_close(): entered
>
>
> This is my pgm:
>
> eval rc = http_url_post(
> 'https://***********/pkmslogin.form'
> : myPointer
> : datasize
> : '/tmp/testpost.html'
> : HTTP_TIMEOUT
> : HTTP_USERAGENT
> : 'application/x-www-form-urlencoded' )
>
> someone can help me??
>
> Thanks!!!!!
>
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> 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
-----------------------------------------------------------------------