File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 61084
    
  66

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: 94
Prepare the arraylist values as XML send as plain string ;-)


Regards, Sujeeth Pakala
SCJP, SCWCD, SCBCD, ICAD, XML Master Basic, Certified SOA Professional
 
 
subject: How to send ArrayList object in request url in java URL class and get it in php