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

RE: HTTPAPI login problems



Nice one then.
We also had to install the beta recently to avoid mixed case issues with
cookies.

Peter

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
CKC@xxxxxxxxxxxxxxxxxxxxxxxx
Sent: Tuesday, 19 May 2009 11:11 a.m.
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Cc: Cameron Carrington
Subject: RE: HTTPAPI login problems

Hi Folks -

 

I have stumbled through the problems I was having earlier.  I downloaded
the
1.24 beta version of HTTPAPI, and that seemed to solve the problem, so I
am guessing I was having case troubles with cookies.

 

FYI, I did have the same trouble reported by Jim Muehe on April 7,
(pointer not set for location referenced in cookie_read).  I added his
line of code and I was logged in.

 

Many thanks to Scott Klement for this fine tool.

 

Cam Carrington

 

From: Carrington [mailto:Carrington@xxxxxxxxxxxxxxxxxxxxxxxx] On Behalf
Of CKC@xxxxxxxxxxxxxxxxxxxxxxxx
Sent: Monday, May 18, 2009 11:09 AM
To: 'ftpapi@xxxxxxxxxxxxxxxxxxxxxx'
Cc: Cameron Carrington (Carrington@xxxxxxxxxxxxxxxxxxxxxxxx)
Subject: HTTPAPI login problems

 

I am attempting to use the tool to automate the download of several
files from an https site.  I am a neophyte with https and ssl, but after
studying this site and Scott's documentation, I was expecting to receive
an authentication request when I contacted the site.  This isn't
happening, and if I try to send authentication anyway, I get a message
back "Authentication
not requested!".   I therefore abandoned that concept, and.

 

Logging on manually (using a browser -- IE7), I get a login screen with
only two fields.  If I enter the userid and password, I get a list of
available files.  Using my program (modeled on Example3), my initial
http_url_get returns html corresponding to the page I initially see in
my browser.  It contains this line:

 

  <form name="form_signon" action="/human.aspx?r=1020230962"
method="Post"
AUTOCOMPLETE="off">

<input type="hidden" name="transaction" value="signon">

<input type="hidden" name="fromsignon" value="1">

<input type="hidden" name="prevuser" value="">

<input type="hidden" name="arg01" value="">

<input type="hidden" name="arg02" value="">

<input type="hidden" name="arg03" value="">

<input type="hidden" name="arg04" value="">

<input type="hidden" name="arg05" value="">

<input type="hidden" name="arg06" value="">

<input type="hidden" name="arg07" value="">

<input type="hidden" name="arg08" value="">

<input type="hidden" name="arg09" value="">

<input type="hidden" name="arg10" value="">

<input type="hidden" name="arg11" value="">

<input type="hidden" name="arg12">

<input type="hidden" name="InstID" value="5630"><td></td>

 

I have loaded up a list of fields corresponding to these (as well as
userid and password) using both http_url_encoder_new and WEBForm.  In
either case, the http_url_post returns rc=1, and I don't appear to get
logged on or redirected.  I did get a response at one point saying
"Cookies appear to be disabled on your browser.  You must enable cookies
before attempting to logon again."  

 

In the CONFIG_H member, cookies are enabled by default.  I also tried:

 

 Callp     http_use_cookies(*On)

 

I no longer get the message, regardless of which version I use.

 

Here is a section of the debug log:

 

Protocol Used: TLS Version 1

http_persist_post(): entered

http_long_ParseURL(): entered

do_post(): entered

POST /human.aspx?r=1499429357 HTTP/1.1

Host: (removed by CC)

User-Agent: http-api/1.22

Content-Type: application/x-www-form-urlencoded

Expect: 100-continue

Content-Length: 0

Cookie: $Version=0; asp.net_sessionid=q4pqjd55wktfqmatrzobqs45; $Path=/;
$Version=0; dmzcookietest=ifyoucanreadthisyourbrowsersupportscookies;
$Path=/; $Version=0; silocklongterminstid=5630; $Path=/; $Version=0;
midmzlang=en; $Path=/; $Version=0; javascripttest=0; $Path=/;
$Version=0; designmodetest=0; $Path=/; $Version=0; nowiz=0; $Path=/;
$Version=0;
wizardversions=3.1.5.0^3.1.5.0#4BD31B20-D5CB-45c6-94B5-EA50678F0A48#3.1.
5|3.
1.7.0#BAACAF97-A065-46f0-BB6F-C8EDD4C00761#3.1.7|3.2.0.0#CF71EA6C-6ABF-4
bb7-
B140-BBB26F9BD65D#3.2.0|3.3.0.0#CD72F011-CDD1-4c44-86D4-37E97CCED9BC#3.3
.0|3
.3.1.0#FB5FF2C3-B7EB-4394-804A-F5820554B59A#3.3.1|3.4.0.0#A81DF11E-14EB-
48f6
-B7CF-8D06AB608DE3#3.4.0|3.4.2.0#C5C02C87-534E-4bcd-A007-54975CF8BBAF#3.
4.2|
4.0.0.0#9D27C3FA-6662-4d29-99FB-A58A405FD584#4.0.0|4.5.0.0#03DED275-9DA6
-450
e-8A34-26684B2DDC78#4.5.0|5.0.0.0#02E58850-DBD8-40d9-8897-1F9F9471023C#5
.0.0
|5.1.0.0#DC811A54-8FE7-4653-9DB6-49CEABCE705A#5.1.0|5.5.0.0#0E409091-058
|5-41
5e-88B9-820BDC57094C#5.5.0; $Path=/; $Version=0;
longtermcookieexpiredate=May 18 2011 13:53:50; $Path=/;

 

 

recvresp(): entered

HTTP/1.1 200 OK

Date: Mon, 18 May 2009 17:53:51 GMT

Server: Microsoft-IIS/6.0

X-Powered-By: ASP.NET

X-AspNet-Version: 2.0.50727

Set-Cookie: DMZCookieTest=ifyoucanreadthisyourbrowsersupportscookies;
path=/

Set-Cookie: siLockLongTermInstID=5630; expires=Wed, 18-May-2011 17:53:51
GMT; path=/

Set-Cookie: MIDMZLang=en; expires=Wed, 18-May-2011 17:53:51 GMT; path=/

Set-Cookie: JavascriptTest=0; path=/

Set-Cookie: DesignModeTest=0; path=/

Set-Cookie: NoWiz=0; path=/

Set-Cookie: LongTermCookieExpireDate=May 18 2011 13:53:51; path=/

Cache-Control: no-cache

Pragma: no-cache

Expires: -1

Content-Type: text/html; charset=utf-8

Content-Length: 9863

 

 

SetError() #13: HTTP/1.1 200 OK

recvdoc parms: identity 9863

header_load_cookies() entered

cookie_parse() entered

cookie =  DMZCookieTest=ifyoucanreadthisyourbrowsersupportscookies;
path=/

cookie attr dmzcookietest=ifyoucanreadthisyourbrowsersupportscookies

cookie attr path=/

cookie_parse() entered

cookie =  siLockLongTermInstID=5630; expires=Wed, 18-May-2011 17:53:51
GMT; path=/

cookie attr silocklongterminstid=5630

cookie attr expires=Wed, 18-May-2011 17:53:51 GMT

cookie attr path=/

cookie_parse() entered

cookie =  MIDMZLang=en; expires=Wed, 18-May-2011 17:53:51 GMT; path=/

cookie attr midmzlang=en

cookie attr expires=Wed, 18-May-2011 17:53:51 GMT

cookie attr path=/

cookie_parse() entered

cookie =  JavascriptTest=0; path=/

cookie attr javascripttest=0

cookie attr path=/

cookie_parse() entered

cookie =  DesignModeTest=0; path=/

cookie attr designmodetest=0

cookie attr path=/

cookie_parse() entered

cookie =  NoWiz=0; path=/

cookie attr nowiz=0

cookie attr path=/

cookie_parse() entered

cookie =  LongTermCookieExpireDate=May 18 2011 13:53:51; path=/

cookie attr longtermcookieexpiredate=May 18 2011 13:53:51

cookie attr path=/

recvdoc(): entered

SetError() #0:

<html>

  <head>

    <META http-equiv="Content-Type" content="text/html; charset=utf-16">

 

This is followed by the same HTML page code that I retrieved on my
initial
get.               

 

I appreciate any and all attempts to help.

 

Thanks,

Cam


 


#####################################################################################
This correspondence is for the named person's use only. It may contain confidential or legally privileged information, or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Veda Advantage. If you need assistance, please contact Veda Advantage on either :- Australia 133124 or New Zealand +64 9 367 6200
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------