×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Posting to Ebay's FileExchange

Posting to Ebay's FileExchange

Posting to Ebay's FileExchange

(OP)
Hello Guru's!

I am having my own personal nightmare right now! (Isn't everyone that is posting here?) I am hoping you all can help.
I am trying to post to EBay's FileExchange servers so that my wife and I can list things in bulk to our eBay account. This does not seem to be that big of an issue, but I am unable to get this to work! I know my database is good and works fine per eBay's rules as I can post it manually and it works. I believe the issue to be the actual post command and how it processes.
Here is what I have in the code . . .


CODE --> Perl

$url="https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExchangeUpload";

my $ua       = LWP::UserAgent->new();
my $response = $ua->post( $url, { 'token' => $token, 'file' => $thefile } );
my $content  = $response->decoded_content(); 

When I use this code to post to the site, I receive the following error message back from eBay:

This link is applicable only for programmatically upload. Otherwise the token you have entered may be wrong, please verify and upload again.

I have verified the Token, and it is correct.

The eBay documentation does not help much, but here is what it says about this . . .
Uploading files programmatically
To upload your file programmatically, send an HTTP Post request to the File Exchange server to accept the request:
1. Download and complete the appropriate File Exchange template.
2. Initiate an HTTPS connection and then post your data file with your token to the File Exchange URL: https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExc...
Tip: See Sample HTTP Post Request on page 50.
To indicate your data is processed, eBay sends an email message that includes the URL at which to access the Load Results report.

Here is the sample HTTP Post Request:
Sample HTTP Post Request
POST /path/to/upload/script HTTP/1.0
Connection: Keep-Alive
User-Agent: My Client App v1.0
Host:
https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExc...
Content-type: multipart/form-data;
boundary=THIS_STRING_SEPARATES
Content-Length: 256
--THIS_STRING_SEPARATES
Content-Disposition: form-data; name="token"
12345678987654321
--THIS_STRING_SEPARATES
Content-Disposition: form-data; name="file";
filename="listings.csv"
Content-Type: text/csv
... contents of listings.csv ...
--THIS_STRING_SEPARATESHTTP

Post Request Components
The HTTP Post request must include the following components. In the first line, the method to be applied to the resource, the identifier of the resource, and the protocol version in use:
POST /path/to/upload/script HTTP/1.0
The connection, user-agent and host information is next:
Connection: Keep-Alive
User-Agent: My Client App v1.0
Host:https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExc...
Header containing file content and length information:
Content-type: multipart/form-data; boundary=THIS_STRING_SEPARATES
Content-Length: 256
Contents, which includes your security token and then the actual file contents you want to upload:
--THIS_STRING_SEPARATES
Content-Disposition: form-data; name="token"
12345678987654321
--THIS_STRING_SEPARATES
Content-Disposition: form-data; name="file"; filename="listings.csv"
Content-Type: text/csv
... contents of listings.csv ...
--THIS_STRING_SEPARATES

I APPRECIATE YOUR SPEEDY RESPONSE AND HELP!

Thank you in advance,

Mark

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close