Subversion Repositories SmartDukaan

Rev

Rev 11106 | Rev 11266 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11106 Rev 11121
Line 251... Line 251...
251
 
251
 
252
				hwb.write(fileOut);
252
				hwb.write(fileOut);
253
			} catch (IOException e) {
253
			} catch (IOException e) {
254
				e.printStackTrace();
254
				e.printStackTrace();
255
			}
255
			}
256
			HttpPost post = new HttpPost("http://seller.snapdeal.com/omni/getOmnitureCodeForMessageUploadType");
256
			HttpPost post = new HttpPost("http://seller.snapdeal.com/pricing/upload?uploadType=SP");
257
			File file = new File(SNAPDEAL_PRICING_SHEET);
257
			File file = new File(SNAPDEAL_PRICING_SHEET);
258
			MultipartEntity mpEntity = new MultipartEntity();
258
			MultipartEntity mpEntity = new MultipartEntity();
259
			ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
259
			ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
260
			mpEntity.addPart("file", cbFile);
260
			mpEntity.addPart("file", cbFile);
261
			post.setEntity(mpEntity);
261
			post.setEntity(mpEntity);