Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
omair bcs
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to send ArrayList object in request url in java URL class and get it in php
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prepare the arraylist values as XML send as plain string ;-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic