www.webdeveloper.com
Results 1 to 2 of 2

Thread: url to login with id and pw

  1. #1
    Join Date
    Feb 2010
    Posts
    33

    url to login with id and pw

    I login with my id and pw to the web page http://www.mycomp.com/DATA/db/index.cfm?action=edit
    If I open another browser tab, I need to login with the same id and pw again.
    I am writing a program to automate the login process.
    What is the url for login with the id and pw passed as parameters?
    This is not the right url:
    http://www.mycomp.com/DATA/db/index....5&submit=Login

    The HTTP session is captured as follows:
    Code:
    http://www.mycomp.com/DATA/db/index.cfm?action=act_proposal_edit
    
    POST /DATA/db/index.cfm?action=act_proposal_edit HTTP/1.1
    Host: www.mycomp.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Proxy-Connection: keep-alive
    Referer: http://www.mycomp.com/DATA/db/index.cfm?action=edit
    Cookie: pmycomp-id=198.103.196.130.1282935108536569; CFID=32002; CFTOKEN=56751797; __utma=163983085.57742683.1284751128.1284751128.1284751128.1; __utmc=163983085; __utmz=163983085.1284751128.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 59
    act=editProposal&Proposal_ID=928&Password=xyz12345&submit=Login
    HTTP/1.1 200 OK
    Date: Thu, 23 Sep 2010 13:38:41 GMT
    Server: Apache
    Content-Type: text/html;charset=iso-8859-1
    Transfer-Encoding: chunked
    ----------------------------------------------------------
    http://www.mycomp.com/css/base-institution.css
    
    GET /css/base-institution.css HTTP/1.1
    Host: www.mycomp.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
    Accept: text/css,*/*;q=0.1
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Connection: keep-alive
    Referer: http://www.mycomp.com/DATA/db/index.cfm?action=act_proposal_edit
    Cookie: pmycomp-id=167.33.55.107.1281364460396256; __utma=214597780.1670341042.1281367441.1285182047.1285186388.34; __utmz=214597780.1285182047.33.12.utmcsr=www.mycomp.com|utmccn=(referral)|utmcmd=referral|utmcct=/DATA/db/index.cfm; JSESSIONID=F5E2381CF84FCA6E53ACAC9878A658DE; __utmc=214597780
    Last edited by albertkao; 09-23-2010 at 09:16 AM.

  2. #2
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,208
    If you are having problems loging in when you navigate a site where you logged in once, then you need to clear your browser's cache and accept ALL cookies from that site. Many require that JavaScript be turned on as the cookies are delivered by JS. This will save you from having to waste time making an auto-log in program. You could also look into apps like RoboForm.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles