Upload Issue with Adobe Air/Actionscript App

JohnWJohnW Registered Users Posts: 1 Beginner grinner
Hi,

I am adding SmugMug photo uploads to my Adobe AIR application. I am POSTING to http://upload.smugmug.com/photos/xmladd.mg. My code works with Windows, but on Mac I get error code 100, "Wrong host. Use upload.smugmug.com".

Looking at the POST headers on Windows and Mac, I see...

On Mac OS 10.6.3:

POST /photos/xmladd.mg HTTP/1.1
Host: upload.smugmug.com:80
Connection: close
Cookie: __qca=P0-410699695-1256913820158; __utma=256378889.1220507174.1256913820.1273501950.1273503710.16; __utmz=256378889.1273501950.15.5.utmcsr=jswu.smugmug.com|utmccn=(referral)|utmcmd=referral|utmcct=/; shott=%241%24oOFET.SU%24lpjMCZDiWSlf838Q%2F8TcM1; SMSESS=9e4585fe6cfbf7ee256fe5632655a134; snapp=468000; Sreferrer=app%3A%2Fmain.swf
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/531.9 (KHTML, like Gecko) AdobeAIR/2.0
X-Flash-Version: 10,1,53,32
Accept-Types: text/*
Content-Type: multipart/form-data; boundary=
KM7ae0cH2ei4KM7KM7ae0KM7KM7Ij5
Content-Length: 117504

On Windows XP:

POST http://upload.smugmug.com/photos/xmladd.mg HTTP/1.1
Accept: text/*
Content-Type: multipart/form-data; boundary=
GI3ae0KM7Ef1KM7Ij5Ef1KM7cH2Ef1
User-Agent: Mozilla/5.0 (Windows; U; en-US) AppleWebKit/531.9 (KHTML, like Gecko) AdobeAIR/2.0
Host: upload.smugmug.com
Content-Length: 117504
Connection: Keep-Alive
Pragma: no-cache
Cookie: Sreferrer=app%3A%2Fmain.swf; snapp=468000; shott=%241%247hLLur5S%24cwRvedy4BugelFo7czEHq1; SMSESS=3eaa73fb180df067c12fc2677f610428

Note on Macs, Adobe AIR appends port 80 to the host value. Am I correct in assuming that upload.smugmug.com is denying the upload because the host is "upload.smugmug.com:80" instead of "upload.smugmug.com"?

You can duplicate this issue using the sample NASMU air application at http://code.google.com/p/as3smugmuglib/downloads/list . When you use this application to upload on Mac, it will fail (using a packet sniffer like Wireshark to see the fail response from the SmugMug server). On Windows, the upload will succeed.

Thanks,
-John

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited May 12, 2010
    pm sent
    David Parry
    SmugMug API Developer
    My Photos
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited May 14, 2010
    The bug fix for this issue is live.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • gotjoshgotjosh Registered Users Posts: 1 Beginner grinner
    edited May 13, 2011
    What was the solution for this?
    Seems to be still a bug in the Mac AIR client... do you have a server side solution/work around?
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited May 17, 2011
    gotjosh wrote: »
    Seems to be still a bug in the Mac AIR client... do you have a server side solution/work around?

    uploading appears to be working fine for me, what issues are you seeing ?
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.