aspose file tools*
The moose likes Distributed Java and the fly likes How to send ArrayList object in request url in java URL class and get it in php Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How to send ArrayList object in request url in java URL class and get it in php" Watch "How to send ArrayList object in request url in java URL class and get it in php" New topic
Author

How to send ArrayList object in request url in java URL class and get it in php

omair bcs
Greenhorn

Joined: Sep 19, 2013
Posts: 1
How to send ArrayList object in request url in java URL class and get it in php
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

You can't send an array list directly. HTTP doesn't have any provisions for it.

What you can do is to send multiple request parameters with the same name, which can be interpreted as an array on the receiving end.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sujeeth Pakala
Ranch Hand

Joined: Mar 24, 2009
Posts: 98
Prepare the arraylist values as XML send as plain string ;-)


Regards, Sujeeth Pakala
SCJP, SCWCD, SCBCD, ICAD, XML Master Basic, Certified SOA Professional
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to send ArrayList object in request url in java URL class and get it in php