搜索
热搜: 活动 交友 discuz
查看: 2089|回复: 4
收起左侧

[12306] 我的程序提交订单总是提示非法的订票请求!帮忙看看,谢谢

[复制链接]
  • TA的每日心情
    开心
    2013-10-11 10:52
  • 签到天数: 2 天

    [LV.1]初来乍到

    发表于 2013-10-10 15:01:44 | 显示全部楼层 |阅读模式
    这一段是我获取的浏览器上的请求,是正确提交的
    POST *********** HTTP/1.1
    Host: dynamic.12306.cn
    Connection: keep-alive
    Content-Length: 1247
    Accept: application/json, text/javascript, */*
    Origin: ************
    X-Requested-With: XMLHttpRequest
    User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36
    Content-Type: application/x-www-form-urlencoded
    Referer: *
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: zh-CN,zh;q=0.8
    Cookie: JSESSIONID=36A7CD9D4FFF40E06A2CF3464E21CCAD; BIGipServerotsweb=2396258570.62495.0000

    org.apache.struts.taglib.html.TOKEN=4e819f732280d5fc0dde6ae5f5687c63&leftTicketStr=1012853152403635012110128502653023050237&textfield=%E4%B8%AD%E6%96%87%E6%88%96%E6%8B%BC%E9%9F%B3%E9%A6%96%E5%AD%97%E6%AF%8D&checkbox0=0&orderRequest.train_date=2013-10-24&orderRequest.train_no=5600000Z4760&orderRequest.station_train_code=Z47&orderRequest.from_station_telecode=HZH&orderRequest.to_station_telecode=WCN&orderRequest.seat_type_code=&orderRequest.ticket_type_order_num=&orderRequest.bed_level_order_num=000000000000000000000000000000&orderRequest.start_time=23%3A10&orderRequest.end_time=07%3A38&orderRequest.from_station_name=%E6%9D%AD%E5%B7%9E&orderRequest.to_station_name=%E6%AD%A6%E6%98%8C&orderRequest.cancel_flag=1&orderRequest.id_mode=Y&passengerTickets=3%2C0%2C1%2C%E6%9D%9C%E5%BD%A9%E4%BA%91%2C1%2C421087199109130041%2C15867159648%2CY&oldPassengers=%E6%9D%9C%E5%BD%A9%E4%BA%91%2C1%2C421087199109130041&passenger_1_seat=3&passenger_1_ticket=1&passenger_1_name=%E6%9D%9C%E5%BD%A9%E4%BA%91&passenger_1_cardtype=1&passenger_1_cardno=421087199109130041&passenger_1_mobileno=15867159648&checkbox9=Y&oldPassengers=&checkbox9=Y&oldPassengers=&checkbox9=Y&oldPassengers=&checkbox9=Y&oldPassengers=&checkbox9=Y&randCode=7386&orderRequest.reserve_flag=A

    这一段是我自己程序提交的请求,总是提示非法的订票请求!
    POST ************ HTTP/1.1
    Content-Type: application/x-www-form-urlencoded
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET4.0C; .NET4.0E)
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Referer: *******************
    Host: dynamic.12306.cn
    Cookie: JSESSIONID=8AC347AFE681E09E804A35FFD4F91FEC; BIGipServerotsweb=2396258570.62495.0000
    Content-Length: 1247
    Expect: 100-continue

    org.apache.struts.taglib.html.TOKEN=8ae281c55ed9e77122691378f02a095c&leftTicketStr=1012853152403635012110128502653023050238&textfield=%e4%b8%ad%e6%96%87%e6%88%96%e6%8b%bc%e9%9f%b3%e9%a6%96%e5%ad%97%e6%af%8d&checkbox0=0&orderRequest.train_date=2013-10-24&orderRequest.train_no=5600000Z4760&orderRequest.station_train_code=Z47&orderRequest.from_station_telecode=HZH&orderRequest.to_station_telecode=WCN&orderRequest.seat_type_code=&orderRequest.ticket_type_order_num=&orderRequest.bed_level_order_num=000000000000000000000000000000&orderRequest.start_time=23%3a10&orderRequest.end_time=07%3a38&orderRequest.from_station_name=%e6%9d%ad%e5%b7%9e&orderRequest.to_station_name=%e6%ad%a6%e6%98%8c&orderRequest.cancel_flag=1&orderRequest.id_mode=Y&passengerTickets=3%2c0%2c1%2c%e6%9d%9c%e5%bd%a9%e4%ba%91%2c1%2c421087199109130041%2c15867159648%2cY&oldPassengers=%e6%9d%9c%e5%bd%a9%e4%ba%91%2c1%2c421087199109130041&passenger_1_seat=3&passenger_1_ticket=1&passenger_1_name=%e6%9d%9c%e5%bd%a9%e4%ba%91&passenger_1_cardtype=1&passenger_1_cardno=421087199109130041&passenger_1_mobileno=15867159648&checkbox9=Y&oldPassengers=&checkbox9=Y&oldPassengers=&checkbox9=Y&oldPassengers=&checkbox9=Y&oldPassengers=&checkbox9=Y&randCode=57y4&orderRequest.reserve_flag=A


  • TA的每日心情
    奋斗
    2019-1-5 01:55
  • 签到天数: 138 天

    [LV.7]常住居民III

    发表于 2013-10-10 15:21:15 | 显示全部楼层
    流程有没有完全按照12306的来?提交之前有没有等待?
  • TA的每日心情
    开心
    2013-10-11 10:52
  • 签到天数: 2 天

    [LV.1]初来乍到

     楼主| 发表于 2013-10-10 15:31:23 | 显示全部楼层
    提交之前没有等待是什么意思,不懂,我就直接提交到12306了
  • TA的每日心情
    开心
    2013-10-11 10:52
  • 签到天数: 2 天

    [LV.1]初来乍到

     楼主| 发表于 2013-10-10 15:51:55 | 显示全部楼层
    尼玛成功了,谢谢你了,流程问题,提交之前要查询一下余额,我没有查询

  • TA的每日心情
    奋斗
    2019-1-5 01:55
  • 签到天数: 138 天

    [LV.7]常住居民III

    发表于 2013-10-10 16:17:35 | 显示全部楼层
    流程是必须遵守的.
    您需要登录后才可以回帖 登录 | 入住

    本版积分规则

    申请友链| Archiver| 手机版| 鱼·后花园

    GMT+8, 2024-11-21 22:18 , Processed in 0.022661 second(s), 18 queries , Redis On.

    Powered by Discuz! X3.4

    © 2005-2024 鱼·后花园

    快速回复 返回顶部 返回列表