Untitled Document
Results 1 to 10 of 10

Thread: PostBackURL not working

  1. #1
    I'm using the browser integration method and have a page setup to handle the postbacks. However, after printing the label with ShipRush I get the following error: (ApplicationEventsMessage) HTTP/1.1 302 Found. Unable to POST to "http://www.ledlight.com/srpburl.aspx" (Compatible)

    I found some info in the KB that mentions it is due to a 302 redirect but I have tested the site using Fiddler to post the values to my receiving page and my page properly handles the data and returns a 200 OK.

    Any ideas?

  2. #2

    Join Date
    Apr 2004
    Location
    Seattle
    Posts
    8,957
    Blog Entries
    1
    SYSOPR is offline
    This means that the url ShipRush is posting to is returning:

    HTTP/1.1 302

    This is being thrown by your web server, not by ShipRush. ShipRush is looking for:

    HTTP/1.1 200 (success)

    The best thing to do is to use fiddler to watch what ShipRush is doing (what url it is reaching for, payload, etc). Then compare that to your "known working" fiddler transaction.
    -----------------------------------
    The Blog: http://forums.zfirm.com/blog.php

    YouTube channel: http://youtube.com/shiprush

    Thank you for using ShipRush!
    Reply With Quote

  3. #3
    Thus far I've been unable to get fiddler to "listen" to what ShipRush is doing. What steps do I need to do to see this? Fiddler correctly shows when a browser does things and when a few other programs do but it does not show anything at all for ShipRush.

  4. #4
    Any help would be greatly appreciated. I called tech support and they said they couldn't help me.

    I have a custom designed page to handle the postback called testpb.aspx and I am able to send a post to this page via fiddler and it works perfectly resulting in a 200 OK message however when shiprush tries to do its postback it says it is getting a 302 message.

    I am unable to get fiddler to "listen" to shiprush while making shiprush work.

    If I set ShipRush to use "compatible" internet connection then ShipRush will print the receipt but give a 302 error when it tries to postback (my postback page is never reached as I have debug code there to tell me if it is.) Fiddler does not see anything from ShipRush including if you click the estimate cost.

    If I set ShipRush to use Windows internet connection then Fiddler is able to see when you click the estimate cost link but when you click on Ship I get the following message: 12057: [12057] (no description available) and fiddler logs the following:
    GET http://production.shippingapis.com/ShippingAPI.dll?API=RateV3&XML=%3CRateV3Request%20 USERID="006ZFIRM3103"%3E%3CPackage%20ID="1"%3E%3CS ervice%3EPRIORITY%3C/Service%3E%3CFirstClassMailType%3EPARCEL%3C/FirstClassMailType%3E%3CZipOrigination%3E27052%3C/ZipOrigination%3E%3CZipDestination%3E85249%3C/ZipDestination%3E%3CPounds%3E1%3C/Pounds%3E%3COunces%3E1%3C/Ounces%3E%3CContainer%3E%3C/Container%3E%3CSize%3EREGULAR%3C/Size%3E%3CWidth%3E0%3C/Width%3E%3CLength%3E0%3C/Length%3E%3CHeight%3E0%3C/Height%3E%3CGirth%3E0%3C/Girth%3E%3CMachinable%3Efalse%3C/Machinable%3E%3C/Package%3E%3C/RateV3Request%3E
    200 OK ()

    CONNECT http://secure.shippingapis.com:443
    200 Blind-Connection Established ()

    GET http://crl.entrust.net/server1.crl
    200 OK (application/x-pkcs7-crl)

    GET http://crl.comodoca.com/AAACertificateServices_2.crl
    200 OK (text/html)

    GET http://crl.comodo.net/AAACertificateServices_2.crl
    200 OK (application/x-pkcs7-crl)

    If I use Native Internet Connection and use the proxy of 127.0.0.1 and port 8888 then fiddler is able to see ShipRush but when I click on Ship it hangs for a while and then give the following error: 301: Interrupted.
    Fiddler logs the following:
    GET http://production.shippingapis.com/ShippingAPI.dll?API=RateV3&XML=%3CRateV3Request%20 USERID="006ZFIRM3103"%3E%3CPackage%20ID="1"%3E%3CS ervice%3EPRIORITY%3C/Service%3E%3CFirstClassMailType%3EPARCEL%3C/FirstClassMailType%3E%3CZipOrigination%3E27052%3C/ZipOrigination%3E%3CZipDestination%3E85249%3C/ZipDestination%3E%3CPounds%3E1%3C/Pounds%3E%3COunces%3E1%3C/Ounces%3E%3CContainer%3E%3C/Container%3E%3CSize%3EREGULAR%3C/Size%3E%3CWidth%3E0%3C/Width%3E%3CLength%3E0%3C/Length%3E%3CHeight%3E0%3C/Height%3E%3CGirth%3E0%3C/Girth%3E%3CMachinable%3Efalse%3C/Machinable%3E%3C/Package%3E%3C/RateV3Request%3E
    200 OK ()

    GET http://production.shippingapis.com/ShippingAPI.dll?API=RateV3&XML=%3CRateV3Request%20 USERID="006ZFIRM3103"%3E%3CPackage%20ID="1"%3E%3CS ervice%3EPRIORITY%3C/Service%3E%3CFirstClassMailType%3EPARCEL%3C/FirstClassMailType%3E%3CZipOrigination%3E27052%3C/ZipOrigination%3E%3CZipDestination%3E85249%3C/ZipDestination%3E%3CPounds%3E1%3C/Pounds%3E%3COunces%3E1%3C/Ounces%3E%3CContainer%3E%3C/Container%3E%3CSize%3EREGULAR%3C/Size%3E%3CWidth%3E0%3C/Width%3E%3CLength%3E0%3C/Length%3E%3CHeight%3E0%3C/Height%3E%3CGirth%3E0%3C/Girth%3E%3CMachinable%3Efalse%3C/Machinable%3E%3C/Package%3E%3C/RateV3Request%3E
    200 OK ()


    Any idea? This is very important we get this going ASAP.

  5. #5

    Join Date
    Apr 2004
    Location
    Seattle
    Posts
    8,957
    Blog Entries
    1
    SYSOPR is offline
    Quote Originally Posted by StokesWeb View Post
    Any help would be greatly appreciated. I called tech support and they said they couldn't help me.

    I have a custom designed page to handle the postback called testpb.aspx and I am able to send a post to this page via fiddler and it works perfectly resulting in a 200 OK message however when shiprush tries to do its postback it says it is getting a 302 message.

    I am unable to get fiddler to "listen" to shiprush while making shiprush work.
    This is important. Without being able to compare the actions of ShipRush to the actions via fiddler, it is hard to know what is going on.

    Another area to look at are the web server logs (the iis logs). They will have the url being posted in to the web server.

    Compare the entry for a fiddler post vs a ShipRush post, and see if that gives a clue.
    -----------------------------------
    The Blog: http://forums.zfirm.com/blog.php

    YouTube channel: http://youtube.com/shiprush

    Thank you for using ShipRush!
    Reply With Quote

  6. #6

    Join Date
    Apr 2004
    Location
    Seattle
    Posts
    8,957
    Blog Entries
    1
    SYSOPR is offline
    Quote Originally Posted by StokesWeb View Post
    I am unable to get fiddler to "listen" to shiprush while making shiprush work.
    Another tool, similar to fiddler but more powerful, is IEInspector:

    http://www.ieinspector.com/httpanalyzer/

    That may succeed in listening where fiddler fails.
    -----------------------------------
    The Blog: http://forums.zfirm.com/blog.php

    YouTube channel: http://youtube.com/shiprush

    Thank you for using ShipRush!
    Reply With Quote

  7. #7
    Are you able to have Fiddler listen to ShipRush on your end? If so, could you test it? I can easily create a test page that you can access to test it with. Just email me for the page name.

  8. #8
    IE Inspector is working so I'm looking into that now. Thanks for the recommendation of that product!

  9. #9
    I found the problem. The problem is a combination of the built-in security measures of asp.net and the ResultShipment value that ShipRush posts back to the PostBackUrl. If asp.net sees certain characters in a post value it will cause an error unless certain steps are taken to prevent this. More info can be found here: http://www.aspcode.net/A-potentially-dangerous-RequestForm-value-was-detected-from-the-client.aspx

    Anyone that creates a custom post back page via asp.net will need to follow the info in that link to prevent an error.

  10. #10

    Join Date
    Apr 2004
    Location
    Seattle
    Posts
    8,957
    Blog Entries
    1
    SYSOPR is offline
    Thank you for the update. I have forwarded this note to make its way into the docs.
    -----------------------------------
    The Blog: http://forums.zfirm.com/blog.php

    YouTube channel: http://youtube.com/shiprush

    Thank you for using ShipRush!
    Reply With Quote

Bookmarks

Posting Permissions

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